| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |