From: Debian LibreOffice Maintainers Date: Thu, 22 Feb 2018 10:14:18 +0000 (+0000) Subject: sensible-lomua X-Git-Tag: archive/raspbian/1%5.2.7-1+rpi1+deb9u3^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=da280e105104f9d210f5b8e3bdae2864a8174d8e;p=libreoffice.git sensible-lomua =================================================================== Gbp-Pq: Name sensible-lomua.diff --- diff --git a/officecfg/registry/data/org/openoffice/Office/Common.xcu b/officecfg/registry/data/org/openoffice/Office/Common.xcu index 58610e7a896..c7fe2951e48 100644 --- a/officecfg/registry/data/org/openoffice/Office/Common.xcu +++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu @@ -627,7 +627,7 @@ - + sensible-lomua diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh index 4519e01f26e..89210e9c150 100755 --- a/shell/source/unix/misc/senddoc.sh +++ b/shell/source/unix/misc/senddoc.sh @@ -77,6 +77,30 @@ if [ "$1" = "--mailclient" ]; then shift fi +case `basename "$MAILER"` in + sensible-lomua) + if [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] \ + || [ -x /usr/bin/gnome-open ] \ + || [ -x /usr/bin/xdg-open ]; then + # use an undefined mailer, to trigger the default handling + MAILER=undefined + elif [ -n "$GNOME_DESKTOP_SESSION_ID" -a -x /usr/bin/evolution ]; then + MAILER=/usr/bin/evolution + elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then + MAILER=/usr/bin/kmail + elif [ -x /usr/bin/evolution ]; then + # default + MAILER=/usr/bin/evolution + elif [ -x /usr/bin/icedove ]; then + # fallback + MAILER=/usr/bin/icedove + elif [ -x /usr/bin/thunderbird ]; then + # fallback + MAILER=/usr/bin/thunderbird + fi + ;; +esac + # autodetect mail client from executable name case `basename "$MAILER" | sed 's/-.*$//'` in