OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 #--------------------------------------------- | 2 #--------------------------------------------- |
3 # xdg-mime | 3 # xdg-mime |
4 # | 4 # |
5 # Utility script to manipulate MIME related information | 5 # Utility script to manipulate MIME related information |
6 # on XDG compliant systems. | 6 # on XDG compliant systems. |
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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 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; | 434 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; |
435 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; | 435 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/nul
l 2>&1; then DE=xfce; |
436 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce | 436 elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>
&1; then DE=xfce |
437 fi | 437 fi |
438 | 438 |
439 if [ x"$DE" = x"" ]; then | 439 if [ x"$DE" = x"" ]; then |
440 # fallback to checking $DESKTOP_SESSION | 440 # fallback to checking $DESKTOP_SESSION |
441 case "$DESKTOP_SESSION" in | 441 case "$DESKTOP_SESSION" in |
442 gnome) | 442 gnome) |
443 DE=gnome; | 443 DE=gnome; |
| 444 ;; |
444 LXDE) | 445 LXDE) |
445 DE=lxde; | 446 DE=lxde; |
446 ;; | 447 ;; |
447 xfce|xfce4) | 448 xfce|xfce4) |
448 DE=xfce; | 449 DE=xfce; |
449 ;; | 450 ;; |
450 esac | 451 esac |
451 fi | 452 fi |
452 | 453 |
453 if [ x"$DE" = x"" ]; then | 454 if [ x"$DE" = x"" ]; then |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 rm -f $kde_dir/$x.desktop | 1315 rm -f $kde_dir/$x.desktop |
1315 fi | 1316 fi |
1316 done | 1317 done |
1317 ;; | 1318 ;; |
1318 esac | 1319 esac |
1319 | 1320 |
1320 update_mime_database $xdg_base_dir | 1321 update_mime_database $xdg_base_dir |
1321 | 1322 |
1322 exit_success | 1323 exit_success |
1323 | 1324 |
OLD | NEW |