Description: Fallback to mutt if ~/.muttrc exists. Author: Per Olofsson --- a/scripts/xdg-email +++ b/scripts/xdg-email @@ -362,6 +362,9 @@ detectDE() elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome; elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde; + elif [ -r ~/.muttrc ] && which mutt > /dev/null 2>&1; then + DE=envvar + MAILER="x-terminal-emulator -e mutt" else DE="" fi }