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

Side by Side Diff: scripts/xdg-email

Issue 7000007: Upstream adjusted my patch to xdg-utils a little before committing it. Merge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xdg-utils/
Patch Set: '' Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « scripts/xdg-desktop-menu ('k') | scripts/xdg-icon-resource » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 #--------------------------------------------- 2 #---------------------------------------------
3 # xdg-email 3 # xdg-email
4 # 4 #
5 # Utility script to open the users favorite email program, using the 5 # Utility script to open the users favorite email program, using the
6 # RFC 2368 mailto: URI spec 6 # RFC 2368 mailto: URI spec
7 # 7 #
8 # Refer to the usage() function below for usage. 8 # Refer to the usage() function below for usage.
9 # 9 #
10 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> 10 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org>
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 case "$(uname 2>/dev/null)" in 444 case "$(uname 2>/dev/null)" in
445 Darwin) 445 Darwin)
446 DE=darwin; 446 DE=darwin;
447 ;; 447 ;;
448 esac 448 esac
449 fi 449 fi
450 450
451 if [ x"$DE" = x"gnome" ]; then 451 if [ x"$DE" = x"gnome" ]; then
452 # gnome-default-applications-properties is only available in GNOME 2.x 452 # gnome-default-applications-properties is only available in GNOME 2.x
453 # but not in GNOME 3.x 453 # but not in GNOME 3.x
454 which gnome-default-applications-properties > /dev/null 2> /dev/null || DE ="gnome3" 454 which gnome-default-applications-properties > /dev/null 2>&1 || DE="gnome 3"
455 fi 455 fi
456 } 456 }
457 457
458 #---------------------------------------------------------------------------- 458 #----------------------------------------------------------------------------
459 # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4 459 # kfmclient exec/openURL can give bogus exit value in KDE <= 3.5.4
460 # It also always returns 1 in KDE 3.4 and earlier 460 # It also always returns 1 in KDE 3.4 and earlier
461 # Simply return 0 in such case 461 # Simply return 0 in such case
462 462
463 kfmclient_fix_exit_code() 463 kfmclient_fix_exit_code()
464 { 464 {
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 ;; 837 ;;
838 838
839 generic|lxde) 839 generic|lxde)
840 open_generic "${mailto}" 840 open_generic "${mailto}"
841 ;; 841 ;;
842 842
843 *) 843 *)
844 exit_failure_operation_impossible "no method available for opening '${mailto }'" 844 exit_failure_operation_impossible "no method available for opening '${mailto }'"
845 ;; 845 ;;
846 esac 846 esac
OLDNEW
« no previous file with comments | « scripts/xdg-desktop-menu ('k') | scripts/xdg-icon-resource » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698