OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 #--------------------------------------------- | 2 #--------------------------------------------- |
3 # xdg-desktop-menu | 3 # xdg-desktop-menu |
4 # | 4 # |
5 # Utility script to install menu items on a Linux desktop. | 5 # Utility script to install menu items on a Linux desktop. |
6 # Refer to the usage() function below for usage. | 6 # Refer to the usage() function below for usage. |
7 # | 7 # |
8 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> | 8 # Copyright 2009-2010, Fathi Boudra <fabo@freedesktop.org> |
9 # Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org> | 9 # Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org> |
10 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at> | 10 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at> |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 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; | 608 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; |
609 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; | 609 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; |
610 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce | 610 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce |
611 fi | 611 fi |
612 | 612 |
613 if [ x"$DE" = x"" ]; then | 613 if [ x"$DE" = x"" ]; then |
614 # fallback to checking $DESKTOP_SESSION | 614 # fallback to checking $DESKTOP_SESSION |
615 case "$DESKTOP_SESSION" in | 615 case "$DESKTOP_SESSION" in |
616 gnome) | 616 gnome) |
617 DE=gnome; | 617 DE=gnome; |
| 618 ;; |
618 LXDE) | 619 LXDE) |
619 DE=lxde; | 620 DE=lxde; |
620 ;; | 621 ;; |
621 xfce|xfce4) | 622 xfce|xfce4) |
622 DE=xfce; | 623 DE=xfce; |
623 ;; | 624 ;; |
624 esac | 625 esac |
625 fi | 626 fi |
626 | 627 |
627 if [ x"$DE" = x"" ]; then | 628 if [ x"$DE" = x"" ]; then |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 | 1249 |
1249 ;; | 1250 ;; |
1250 esac | 1251 esac |
1251 done | 1252 done |
1252 | 1253 |
1253 if [ x"$update" = x"yes" ] ; then | 1254 if [ x"$update" = x"yes" ] ; then |
1254 update_desktop_database | 1255 update_desktop_database |
1255 fi | 1256 fi |
1256 | 1257 |
1257 exit_success | 1258 exit_success |
OLD | NEW |