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

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

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 | « no previous file | scripts/xdg-desktop-menu » ('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-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
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
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
OLDNEW
« no previous file with comments | « no previous file | scripts/xdg-desktop-menu » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698