Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(861)

Side by Side Diff: scripts/xdg-desktop-menu

Issue 6881074: Linux: fix a syntax error in the latest version of xdg-utils. Will report it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/xdg-utils/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « scripts/xdg-desktop-icon ('k') | scripts/xdg-email » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « scripts/xdg-desktop-icon ('k') | scripts/xdg-email » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698