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

Side by Side Diff: scripts/xdg-email

Issue 6881074: Linux: fix a syntax error in the latest version of xdg-utils. Will report it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xdg-utils/
Patch Set: Created 9 years, 8 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/D Bus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/nul l 2>&1` ; then DE=gnome; 364 elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/D Bus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/nul l 2>&1` ; then DE=gnome;
365 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul l 2>&1; then DE=xfce; 365 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul l 2>&1; then DE=xfce;
366 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2> &1; then DE=xfce 366 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2> &1; then DE=xfce
367 fi 367 fi
368 368
369 if [ x"$DE" = x"" ]; then 369 if [ x"$DE" = x"" ]; then
370 # fallback to checking $DESKTOP_SESSION 370 # fallback to checking $DESKTOP_SESSION
371 case "$DESKTOP_SESSION" in 371 case "$DESKTOP_SESSION" in
372 gnome) 372 gnome)
373 DE=gnome; 373 DE=gnome;
374 ;;
374 LXDE) 375 LXDE)
375 DE=lxde; 376 DE=lxde;
376 ;; 377 ;;
377 xfce|xfce4) 378 xfce|xfce4)
378 DE=xfce; 379 DE=xfce;
379 ;; 380 ;;
380 esac 381 esac
381 fi 382 fi
382 383
383 if [ x"$DE" = x"" ]; then 384 if [ x"$DE" = x"" ]; then
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 ;; 779 ;;
779 780
780 generic|lxde) 781 generic|lxde)
781 open_generic "${mailto}" 782 open_generic "${mailto}"
782 ;; 783 ;;
783 784
784 *) 785 *)
785 exit_failure_operation_impossible "no method available for opening '${mailto }'" 786 exit_failure_operation_impossible "no method available for opening '${mailto }'"
786 ;; 787 ;;
787 esac 788 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