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

Unified Diff: third_party/xdg-utils/scripts/xdg-icon-resource.in

Issue 3273010: Update our copy of xdg-utils to 2010-08-30, and include a patched xdg-mime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-icon-resource ('k') | third_party/xdg-utils/scripts/xdg-mime » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/xdg-utils/scripts/xdg-icon-resource.in
===================================================================
--- third_party/xdg-utils/scripts/xdg-icon-resource.in (revision 57942)
+++ third_party/xdg-utils/scripts/xdg-icon-resource.in (working copy)
@@ -33,8 +33,8 @@
find_gtk_update_icon_cache()
{
[ -n "$GTK_UPDATE_ICON_CACHE" ] && return;
-
- GTK_UPDATE_ICON_CACHE="-"
+
+ GTK_UPDATE_ICON_CACHE="-"
for x in `echo "$PATH:/opt/gnome/bin" | sed 's/:/ /g'`; do
DEBUG 3 "Checking $x for gtk-update-icon-cache"
if [ -x "$x/gtk-update-icon-cache" ] ; then
@@ -52,7 +52,7 @@
# The availability of gtk-update-icon-cache is used as indication
# of whether the system is using GTK 2.6 or later
find_gtk_update_icon_cache
- [ "$GTK_UPDATE_ICON_CACHE" != "-" ] && return 1;
+ [ "$GTK_UPDATE_ICON_CACHE" != "-" ] && return 1;
return 0;
}
@@ -65,7 +65,7 @@
# Don't create a cache if there wan't one already
if [ -f "$1/icon-theme.cache" ] ; then
find_gtk_update_icon_cache
- if [ "$GTK_UPDATE_ICON_CACHE" != "-" ] ; then
+ if [ "$GTK_UPDATE_ICON_CACHE" != "-" ] ; then
DEBUG 1 "Running $GTK_UPDATE_ICON_CACHE -f -t \"$1\""
eval '$GTK_UPDATE_ICON_CACHE -f -t "$1"'$xdg_redirect_output
return
@@ -126,7 +126,7 @@
system)
mode="system"
;;
-
+
*)
exit_failure_syntax "unknown mode '$1'"
;;
@@ -344,9 +344,10 @@
xdg_dir="$xdg_base_dir/$xdg_size_name/$context"
#KDE 3.x doesn't support XDG_DATA_HOME for icons
#Check if xdg_dir prefix is listed by kde-config --path icon
- #If not, install additional symlink to kdedir
+ #If not, install additional symlink to kdedir
if need_kde_icon_path "$xdg_user_prefix" ; then
- kde_user_dir="$HOME/.kde/share/icons/$theme"
+ kde_user_icon_dir=`kde${KDE_SESSION_VERSION}-config --path icon | cut -d ':' -f 1`
+ kde_user_dir="$kde_user_icon_dir/$theme"
kde_dir="$kde_user_dir/$xdg_size_name/$context"
fi
#Gnome 2.8 supports ~/.icons but not XDG_DATA_HOME
@@ -367,7 +368,7 @@
xdg_dir="$xdg_base_dir/$xdg_size_name/$context"
#KDE 3.x doesn't support XDG_DATA_DIRS for icons
#Check if xdg_dir prefix is listed by kde-config --path icon
- #If not, install additional symlink to kdedir
+ #If not, install additional symlink to kdedir
if need_kde_icon_path "$xdg_global_prefix" ; then
kde_global_dir="$kde_global_prefix/$theme"
kde_dir="$kde_global_dir/$xdg_size_name/$context"
@@ -378,7 +379,7 @@
# Start GNOME legacy workaround section
need_gnome_mime=
-[ $context = "mimetypes" ] && need_gnome_mime=true
+[ $context = "mimetypes" ] && need_gnome_mime=true
# End GNOME legacy workaround section
[ -n "$icon_name" ] || icon_name=`basename "$icon_file" | sed 's/\.[a-z][a-z][a-z]$//'`
@@ -424,8 +425,8 @@
rm -f "$icon_dir/$icon_name.xpm" "$icon_dir/$icon_name.png"
rm -f "$icon_dir/$icon_icon_name"
if [ -n "$need_gnome_mime" ] ; then
- rm -f "$icon_dir/gnome-mime-$icon_name.xpm"
- rm -f "$icon_dir/gnome-mime-$icon_name.png"
+ rm -f "$icon_dir/gnome-mime-$icon_name.xpm"
+ rm -f "$icon_dir/gnome-mime-$icon_name.png"
fi
done
if [ -n "$kde_dir" ] ; then
« no previous file with comments | « third_party/xdg-utils/scripts/xdg-icon-resource ('k') | third_party/xdg-utils/scripts/xdg-mime » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698