shell/source/unix/misc/senddoc.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit 87897ea7137ab2e6fc36f5986d8c0eb210836664 Author: LuboÅ¡ LuÅák <[email protected]> Date: Mon Apr 30 16:15:09 2012 +0200 and be (not so) ultimately smart in the mailto handler diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh index fd87644..e7309eb 100755 --- a/shell/source/unix/misc/senddoc.sh +++ b/shell/source/unix/misc/senddoc.sh @@ -407,9 +407,9 @@ case `basename "$MAILER" | sed 's/-.*$//'` in if [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] ; then MAILER=/usr/bin/kde-open elif [ -x /usr/bin/gnome-open ] ; then - MAILER = /usr/bin/gnome-open + MAILER=/usr/bin/gnome-open elif [ -x /usr/bin/xdg-open ] ; then - MAILER = /usr/bin/xdg-open + MAILER=/usr/bin/xdg-open else echo "Unsupported mail client: `basename $MAILER | sed 's/-.*^//'`" exit 2 commit b78e16f99d1427435bd887800482061e5df53cdf Author: LuboÅ¡ LuÅák <[email protected]> Date: Mon Apr 30 16:14:35 2012 +0200 be even smarter in the mailto handler :) diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh index f3657e6..fd87644 100755 --- a/shell/source/unix/misc/senddoc.sh +++ b/shell/source/unix/misc/senddoc.sh @@ -404,7 +404,9 @@ case `basename "$MAILER" | sed 's/-.*$//'` in # do not recognize. Try to be smart, and send the mail anyway, if we # have the possibility to do so. - if [ -x /usr/bin/gnome-open ] ; then + if [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kde-open ] ; then + MAILER=/usr/bin/kde-open + elif [ -x /usr/bin/gnome-open ] ; then MAILER = /usr/bin/gnome-open elif [ -x /usr/bin/xdg-open ] ; then MAILER = /usr/bin/xdg-open
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
