diff --git a/share/fsl/sbin/createFSLWrapper b/share/fsl/sbin/createFSLWrapper
index cfb9c6e11cce882458dbb0d7963a559a659422f1..c804c9c6a962aadfa22b64f0d67a7c4e48c113fb 100755
--- a/share/fsl/sbin/createFSLWrapper
+++ b/share/fsl/sbin/createFSLWrapper
@@ -66,6 +66,20 @@ fi
 
 for script in $targets; do
   sourceScript="${PREFIX}/bin/$script"
+
+  # FSL GUIs are called (e.g.) <Command> om Linux,
+  # but <Command>_gui on macOS, because macOS file
+  # systems are usually case-sensitive. To work
+  # around this (and to not accidentally create a
+  # link called <Command> to <command>), the FSL
+  # package post link scripts only specify
+  # <Command>_gui. Here, we remove the _gui suffix
+  # if no source file exists (in which we are
+  # likely running on Linux)
+  if [ "$sourceScript" = *"_gui" ] && [ ! -f "$sourceScript" ]; then
+    sourceScript=${sourceScript/_gui/}
+  fi
+
   targetScript="${FSLDIR}/share/fsl/bin/$script"
 
   if [ ! -f "$sourceScript" ]; then
diff --git a/share/fsl/sbin/removeFSLWrapper b/share/fsl/sbin/removeFSLWrapper
index b99fdc3e55a829f831b348c4cbdd9b42f8c5de7f..feecb9f8727cd0da7552beefbbfc0246ef3ca52e 100755
--- a/share/fsl/sbin/removeFSLWrapper
+++ b/share/fsl/sbin/removeFSLWrapper
@@ -32,6 +32,11 @@ fi
 for script in $targets; do
   targetScript="${FSLDIR}/share/fsl/bin/$script"
 
+  # See comment about FSL GUIs in post-link.sh
+  if [ "$targetScript" = *"_gui" ] && [ ! -f "$targetScript" ]; then
+    targetScript=${targetScript/_gui/}
+  fi
+
   if [ -f "$targetScript" ]; then
     rm "$targetScript"
   fi