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

Side by Side Diff: third_party/xdg-utils/scripts/xdg-email.in

Issue 159433: Bring xdg-utils up to date as of 2009-07-27. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 4 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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
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 2006, Kevin Krammer <kevin.krammer@gmx.at> 10 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at>
(...skipping 26 matching lines...) Expand all
37 [ -z $client ] && client="kmail" 37 [ -z $client ] && client="kmail"
38 if ! which $client > /dev/null 2> /dev/null; then 38 if ! which $client > /dev/null 2> /dev/null; then
39 DEBUG 3 "KDE has $client configured as email client which isn't inst alled" 39 DEBUG 3 "KDE has $client configured as email client which isn't inst alled"
40 if which gnome-open > /dev/null 2> /dev/null && which evolution > /d ev/null 2> /dev/null; then 40 if which gnome-open > /dev/null 2> /dev/null && which evolution > /d ev/null 2> /dev/null; then
41 DEBUG 3 "Try gnome-open instead" 41 DEBUG 3 "Try gnome-open instead"
42 open_gnome "$1" 42 open_gnome "$1"
43 fi 43 fi
44 fi 44 fi
45 fi 45 fi
46 DEBUG 1 "Running kmailservice \"$1\"" 46 DEBUG 1 "Running kmailservice \"$1\""
47 if [ x"$KDE_SESSION_VERSION" = x"4" ]; then
48 KMAILSERVICE=`kde4-config --locate kmailservice --path exe 2>/dev/null`
49 else
50 KMAILSERVICE=`which kmailservice 2>/dev/null`
51 fi
47 # KDE uses locale's encoding when decoding the URI, so set it to UTF-8 52 # KDE uses locale's encoding when decoding the URI, so set it to UTF-8
48 LC_ALL=C.UTF-8 kmailservice "$1" 53 LC_ALL=C.UTF-8 $KMAILSERVICE "$1"
49 kfmclient_fix_exit_code $? 54 kfmclient_fix_exit_code $?
50 55
51 if [ $? -eq 0 ]; then 56 if [ $? -eq 0 ]; then
52 exit_success 57 exit_success
53 else 58 else
54 exit_failure_operation_failed 59 exit_failure_operation_failed
55 fi 60 fi
56 } 61 }
57 62
58 open_gnome() 63 open_gnome()
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 ;; 288 ;;
284 289
285 generic) 290 generic)
286 open_generic "${mailto}" 291 open_generic "${mailto}"
287 ;; 292 ;;
288 293
289 *) 294 *)
290 exit_failure_operation_impossible "no method available for opening '${mailto }'" 295 exit_failure_operation_impossible "no method available for opening '${mailto }'"
291 ;; 296 ;;
292 esac 297 esac
OLDNEW
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-email ('k') | third_party/xdg-utils/scripts/xdg-icon-resource » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698