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

Side by Side Diff: third_party/xdg-utils/scripts/xdg-desktop-icon.in

Issue 6758016: Update xdg-utils to the latest version available in CVS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
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
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>
10 # Copyright 2009-2010, Rex Dieter <rdieter@fedoraproject.org>
9 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at> 11 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at>
10 # Copyright 2006, Jeremy White <jwhite@codeweavers.com> 12 # Copyright 2006, Jeremy White <jwhite@codeweavers.com>
11 # 13 #
12 # LICENSE: 14 # LICENSE:
13 # 15 #
14 #--------------------------------------------- 16 #---------------------------------------------
15 17
16 usage() 18 usage()
17 { 19 {
18 cat << _USAGE 20 cat << _USAGE
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 131
130 case $action in 132 case $action in
131 install) 133 install)
132 save_umask=`umask` 134 save_umask=`umask`
133 umask $my_umask 135 umask $my_umask
134 136
135 for x in "$desktop_dir" "$desktop_dir_kde" "$desktop_dir_gnome" ; do 137 for x in "$desktop_dir" "$desktop_dir_kde" "$desktop_dir_gnome" ; do
136 if [ -n "$x" ]; then 138 if [ -n "$x" ]; then
137 mkdir -p "$x" 139 mkdir -p "$x"
138 eval 'cp "$desktop_file" "$x/$basefile"'$xdg_redirect_output 140 eval 'cp "$desktop_file" "$x/$basefile"'$xdg_redirect_output
141 chmod u+x "$x/$basefile"
139 fi 142 fi
140 done 143 done
141 144
142 umask $save_umask 145 umask $save_umask
143 ;; 146 ;;
144 147
145 uninstall) 148 uninstall)
146 for x in "$desktop_dir" "$desktop_dir_kde" "$desktop_dir_gnome" ; do 149 for x in "$desktop_dir" "$desktop_dir_kde" "$desktop_dir_gnome" ; do
147 if [ -n "$x" ]; then 150 if [ -n "$x" ]; then
148 rm -f "$x/$basefile" 151 rm -f "$x/$basefile"
149 fi 152 fi
150 done 153 done
151 154
152 ;; 155 ;;
153 esac 156 esac
154 157
155 exit_success 158 exit_success
156 159
157 160
OLDNEW
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-desktop-icon ('k') | third_party/xdg-utils/scripts/xdg-desktop-menu » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698