xdg-utils/xdg-utils-20060721-optgnome.patch

41 lines
1.2 KiB
Diff
Raw Normal View History

--- xdg-utils-20060721/scripts/xdg-icon-resource.optgnome 2006-07-21 18:26:31.000000000 -0500
+++ xdg-utils-20060721/scripts/xdg-icon-resource 2006-07-24 13:31:42.000000000 -0500
@@ -315,16 +315,13 @@
update_icon_database()
{
- IFS_save=$IFS
- IFS=":"
- for x in $PATH:/opt/gnome/bin; do
+ for x in `echo $PATH | sed 's/:/ /g'` /opt/gnome/bin ; do
if [ -x $x/gtk-update-icon-cache ] ; then
DEBUG 1 "Running $x/gtk-update-icon-cache -f -t \"$1\""
eval '$x/gtk-update-icon-cache -f -t "$1"'$xdg_redirect_output
return
fi
done
- IFS=$IFS_save
}
[ x"$1" != x"" ] || exit_failure_syntax
--- xdg-utils-20060721/scripts/xdg-mime.optgnome 2006-07-21 18:26:31.000000000 -0500
+++ xdg-utils-20060721/scripts/xdg-mime 2006-07-24 13:31:12.000000000 -0500
@@ -344,16 +344,13 @@
update_mime_database()
{
- IFS_save=$IFS
- IFS=":"
- for x in $PATH:/opt/gnome/bin; do
+ for x in `echo $PATH | sed 's/:/ /g'` /opt/gnome/bin ; do
if [ -x $x/update-mime-database ] ; then
DEBUG 1 "Running $x/update-mime-database $1"
eval '$x/update-mime-database $1'$xdg_redirect_output
return
fi
done
- IFS=$IFS_save
}
info_kde()