| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 #--------------------------------------------- | 2 #--------------------------------------------- |
| 3 # xdg-desktop-icon | 3 # xdg-desktop-icon |
| 4 # | 4 # |
| 5 # Utility script to install desktop items on a Linux desktop. | 5 # Utility script to install desktop items on a Linux desktop. |
| 6 # | 6 # |
| 7 # Refer to the usage() function below for usage. | 7 # Refer to the usage() function below for usage. |
| 8 # | 8 # |
| 9 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> | 9 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> |
| 10 # Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org> | 10 # Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org> |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 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; | 412 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; |
| 413 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; | 413 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; |
| 414 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce | 414 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce |
| 415 fi | 415 fi |
| 416 | 416 |
| 417 if [ x"$DE" = x"" ]; then | 417 if [ x"$DE" = x"" ]; then |
| 418 # fallback to checking $DESKTOP_SESSION | 418 # fallback to checking $DESKTOP_SESSION |
| 419 case "$DESKTOP_SESSION" in | 419 case "$DESKTOP_SESSION" in |
| 420 gnome) | 420 gnome) |
| 421 DE=gnome; | 421 DE=gnome; |
| 422 ;; |
| 422 LXDE) | 423 LXDE) |
| 423 DE=lxde; | 424 DE=lxde; |
| 424 ;; | 425 ;; |
| 425 xfce|xfce4) | 426 xfce|xfce4) |
| 426 DE=xfce; | 427 DE=xfce; |
| 427 ;; | 428 ;; |
| 428 esac | 429 esac |
| 429 fi | 430 fi |
| 430 | 431 |
| 431 if [ x"$DE" = x"" ]; then | 432 if [ x"$DE" = x"" ]; then |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 rm -f "$x/$basefile" | 584 rm -f "$x/$basefile" |
| 584 fi | 585 fi |
| 585 done | 586 done |
| 586 | 587 |
| 587 ;; | 588 ;; |
| 588 esac | 589 esac |
| 589 | 590 |
| 590 exit_success | 591 exit_success |
| 591 | 592 |
| 592 | 593 |
| OLD | NEW |