From: Debian LibreOffice Maintainers Date: Wed, 25 Mar 2026 20:39:29 +0000 (+0100) Subject: sensible-lomua X-Git-Tag: archive/raspbian/4%26.2.2.2-3+rpi1^2~43 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=76bada7a31d7eb87f3ad4ad5d08d31f407a3cc2b;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 22224887cff..1a9f80f1147 100644 --- a/officecfg/registry/data/org/openoffice/Office/Common.xcu +++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu @@ -482,7 +482,7 @@ - + sensible-lomua diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh index 65ade8426d1..7c2b02dcda4 100755 --- a/shell/source/unix/misc/senddoc.sh +++ b/shell/source/unix/misc/senddoc.sh @@ -35,6 +35,32 @@ if [ "$1" = "--mailclient" ]; then shift fi +case `basename "$MAILER"` in + sensible-lomua) + if [ -x /usr/bin/xdg-email ] ; then + MAILER=/usr/bin/xdg-email + elif [ -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 MAILER_TYPE=$(basename "$MAILER")