diff --git a/system_files/desktop/shared/usr/libexec/ublue-motd b/system_files/desktop/shared/usr/libexec/ublue-motd index 238c9e21..bd7aa271 100755 --- a/system_files/desktop/shared/usr/libexec/ublue-motd +++ b/system_files/desktop/shared/usr/libexec/ublue-motd @@ -1,4 +1,11 @@ #!/usr/bin/bash + +# Exit immediately if this is a Midnight Commander (mc) subshell. +# Fixes issue #2003. +if [[ -n "$MC_SID" ]]; then + exit 0 +fi + escape() { sed 's/[&/\]/\\&/g' <<< "$1" }