Package: xdg-utils
Version: 1.1.0~rc1+git20111210-3

The following code in xdg-email makes the script always open mutt,
regardless of the desktop environment and its settings, if the user
ever launched mutt.

if [ -r ~/.muttrc ] || [ -r ~/.mutt/muttrc ] && \    which mutt
>/dev/null 2>&1; then    MAILER="x-terminal-emulator -e mutt"fi
if [ x"$MAILER" != x"" ]; then    DE=envvarfi
IMHO MAILER=mutt should be used only when the desktop environment is
not detected and MAILER is not specified, e.g.

--- xdg-email   2011-12-29 14:58:57.299258705 +0100
+++ /usr/bin/xdg-email  2011-12-20 23:46:07.000000000 +0100
@@ -855,11 +855,9 @@
     DE=generic
 fi

-if [ -z "$MAILER" && -z "$DE" ]; then
-    if [ -r ~/.muttrc ] || [ -r ~/.mutt/muttrc ] && \
-        which mutt >/dev/null 2>&1; then
-        MAILER="x-terminal-emulator -e mutt"
-    fi
+if [ -r ~/.muttrc ] || [ -r ~/.mutt/muttrc ] && \
+    which mutt >/dev/null 2>&1; then
+    MAILER="x-terminal-emulator -e mutt"
 fi

 if [ x"$MAILER" != x"" ]; then

-- 
Jindřich Makovička



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to