Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: third_party/xdg-utils/scripts/xdg-email.in

Issue 6737007: Update xdg-utils to the latest version available in git. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-email ('k') | third_party/xdg-utils/scripts/xdg-file-dialog.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/xdg-utils/scripts/xdg-email.in
===================================================================
--- third_party/xdg-utils/scripts/xdg-email.in (revision 79909)
+++ third_party/xdg-utils/scripts/xdg-email.in (working copy)
@@ -120,6 +120,32 @@
fi
}
+open_gnome3()
+{
+ local client
+ local desktop
+ desktop=`xdg-mime query default "x-scheme-handler/mailto"`
+ client=`desktop_file_to_binary "$browser"`
+ echo $client | grep thunderbird > /dev/null 2>&1
+ if [ $? -eq 0 ] ; then
+ run_thunderbird "$client" "$1"
+ fi
+
+ if gvfs-open --help 2>/dev/null 1>&2; then
+ DEBUG 1 "Running gvfs-open \"$1\""
+ gvfs-open "$1"
+ else
+ DEBUG 1 "Running gnome-open \"$1\""
+ gnome-open "$1"
+ fi
+
+ if [ $? -eq 0 ]; then
+ exit_success
+ else
+ exit_failure_operation_failed
+ fi
+}
+
open_gnome()
{
local client
@@ -360,6 +386,10 @@
open_gnome "${mailto}"
;;
+ gnome3)
+ open_gnome3 "${mailto}"
+ ;;
+
xfce)
open_xfce "${mailto}"
;;
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-email ('k') | third_party/xdg-utils/scripts/xdg-file-dialog.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698