summaryrefslogtreecommitdiffstats
path: root/debian/patches/sensible-lomua.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:07:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:07:31 +0000
commitedaebb65d92a48d7075c8c1f64c5ffd87054827b (patch)
tree045c941e1851cde1665bea22d97a2976b7a5bb69 /debian/patches/sensible-lomua.diff
parentAdding upstream version 4:7.4.7. (diff)
downloadlibreoffice-edaebb65d92a48d7075c8c1f64c5ffd87054827b.tar.xz
libreoffice-edaebb65d92a48d7075c8c1f64c5ffd87054827b.zip
Adding debian version 4:7.4.7-1+deb12u1.debian/4%7.4.7-1+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/sensible-lomua.diff')
-rw-r--r--debian/patches/sensible-lomua.diff50
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/patches/sensible-lomua.diff b/debian/patches/sensible-lomua.diff
new file mode 100644
index 000000000..6b98bbc4d
--- /dev/null
+++ b/debian/patches/sensible-lomua.diff
@@ -0,0 +1,50 @@
+Index: libreoffice-3.6.2~rc1/officecfg/registry/data/org/openoffice/Office/Common.xcu
+===================================================================
+--- libreoffice-3.6.2~rc1.orig/officecfg/registry/data/org/openoffice/Office/Common.xcu 2012-10-07 21:03:17.662850386 -0400
++++ libreoffice-3.6.2~rc1/officecfg/registry/data/org/openoffice/Office/Common.xcu 2012-10-07 21:03:57.174850591 -0400
+@@ -655,7 +655,7 @@
+ </node>
+ <node oor:name="ExternalMailer" install:module="unixdesktop">
+ <prop oor:name="Program">
+- <value oor:external="com.sun.star.configuration.backend.DesktopBackend ExternalMailer"/>
++ <value>sensible-lomua</value>
+ </prop>
+ </node>
+ <node oor:name="Font">
+Index: libreoffice-3.6.2~rc1/shell/source/unix/misc/senddoc.sh
+===================================================================
+--- libreoffice-3.6.2~rc1.orig/shell/source/unix/misc/senddoc.sh 2012-10-07 21:03:17.662850386 -0400
++++ libreoffice-3.6.2~rc1/shell/source/unix/misc/senddoc.sh 2012-10-07 21:29:13.074858447 -0400
+@@ -59,6 +59,32 @@
+ 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
+ case $(basename "$MAILER" | sed 's/-.*$//') in
+