52 lines
2.1 KiB
Text
52 lines
2.1 KiB
Text
--- scripts/xdg-desktop-menu.orig Fri Oct 27 16:15:47 2006
|
|
+++ scripts/xdg-desktop-menu Fri Oct 27 16:37:13 2006
|
|
@@ -696,7 +696,7 @@
|
|
|
|
for MIME in $mimetypes ; do
|
|
xdg_default_dirs="$XDG_DATA_DIRS"
|
|
- [ -n "$xdg_default_dirs" ] || xdg_default_dirs=/usr/local/share/:/usr/share/
|
|
+ [ -n "$xdg_default_dirs" ] || xdg_default_dirs=%%LOCALBASE%%/share:/usr/local/share/:/usr/share/
|
|
if [ x"$mode" = x"user" ] ; then
|
|
xdg_user_dir="$XDG_DATA_HOME"
|
|
[ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.local/share"
|
|
@@ -739,7 +739,7 @@
|
|
xdg_user_dir="$xdg_user_dir/$xdg_dir_name"
|
|
|
|
xdg_system_dirs="$XDG_CONFIG_DIRS"
|
|
- [ -n "$xdg_system_dirs" ] || xdg_system_dirs=/etc/xdg
|
|
+ [ -n "$xdg_system_dirs" ] || xdg_system_dirs=%%LOCALBASE%%/etc/xdg
|
|
xdg_global_dir=
|
|
for x in `echo $xdg_system_dirs | sed 's/:/ /g'` ; do
|
|
if [ -w $x/$xdg_dir_name ] ; then
|
|
@@ -1099,7 +1099,7 @@
|
|
xdg_user_dir="$xdg_user_dir/$xdg_dir_name"
|
|
|
|
xdg_system_dirs="$XDG_DATA_DIRS"
|
|
-[ -n "$xdg_system_dirs" ] || xdg_system_dirs=/usr/local/share/:/usr/share/
|
|
+[ -n "$xdg_system_dirs" ] || xdg_system_dirs=%%LOCALBASE%%/share:/usr/local/share/:/usr/share/
|
|
xdg_global_dir=
|
|
for x in `echo $xdg_system_dirs | sed 's/:/ /g'` ; do
|
|
if [ -w $x/$xdg_dir_name ] ; then
|
|
@@ -1166,7 +1166,7 @@
|
|
xdg_user_dir="$xdg_user_dir/$xdg_dir_name"
|
|
|
|
xdg_system_dirs="$XDG_DATA_DIRS"
|
|
-[ -n "$xdg_system_dirs" ] || xdg_system_dirs=/usr/local/share/:/usr/share/
|
|
+[ -n "$xdg_system_dirs" ] || xdg_system_dirs=%%LOCALBASE%%/share:/usr/local/share/:/usr/share/
|
|
xdg_global_dir=
|
|
for x in `echo $xdg_system_dirs | sed 's/:/ /g'` ; do
|
|
if [ -w $x/$xdg_dir_name ] ; then
|
|
@@ -1176,11 +1176,11 @@
|
|
done
|
|
|
|
kde_user_dir="$HOME/.kde/share/applnk"
|
|
-kde_global_dir="/usr/share/applnk"
|
|
+kde_global_dir="%%LOCALBASE%%/share/applnk"
|
|
[ -w $kde_global_dir ] || kde_global_dir=
|
|
|
|
gnome_user_dir="$HOME/.gnome/apps"
|
|
-gnome_global_dir="/usr/share/gnome/apps"
|
|
+gnome_global_dir="%%LOCALBASE%%/share/gnome/apps"
|
|
[ -w $gnome_global_dir ] || gnome_global_dir=
|
|
|
|
[ -f /etc/mandriva-release ] && need_mandriva_fix=true
|