OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 #--------------------------------------------- | 2 #--------------------------------------------- |
3 # xdg-settings | 3 # xdg-settings |
4 # | 4 # |
5 # Utility script to get various settings from the desktop environment. | 5 # Utility script to get various settings from the desktop environment. |
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, Google Inc. | 9 # Copyright 2009, Google Inc. |
10 # | 10 # |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 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; | 319 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; |
320 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; | 320 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; |
321 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce | 321 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce |
322 fi | 322 fi |
323 | 323 |
324 if [ x"$DE" = x"" ]; then | 324 if [ x"$DE" = x"" ]; then |
325 # fallback to checking $DESKTOP_SESSION | 325 # fallback to checking $DESKTOP_SESSION |
326 case "$DESKTOP_SESSION" in | 326 case "$DESKTOP_SESSION" in |
327 gnome) | 327 gnome) |
328 DE=gnome; | 328 DE=gnome; |
| 329 ;; |
329 LXDE) | 330 LXDE) |
330 DE=lxde; | 331 DE=lxde; |
331 ;; | 332 ;; |
332 xfce|xfce4) | 333 xfce|xfce4) |
333 DE=xfce; | 334 DE=xfce; |
334 ;; | 335 ;; |
335 esac | 336 esac |
336 fi | 337 fi |
337 | 338 |
338 if [ x"$DE" = x"" ]; then | 339 if [ x"$DE" = x"" ]; then |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 ;; | 951 ;; |
951 | 952 |
952 generic) | 953 generic) |
953 dispatch_generic "$@" | 954 dispatch_generic "$@" |
954 ;; | 955 ;; |
955 | 956 |
956 *) | 957 *) |
957 exit_failure_operation_impossible "unknown desktop environment" | 958 exit_failure_operation_impossible "unknown desktop environment" |
958 ;; | 959 ;; |
959 esac | 960 esac |
OLD | NEW |