[Wine-patches] ieinstall: use xdg-user-dir for shortcuts creating (eterbug #4903)

Konstantin Kondratyuk kondratyuk на etersoft.ru
Чт Янв 28 10:47:36 MSK 2010


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From dcb2fe6999569cbb74de4b0cfe303c8af120c2e7 Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Thu, 28 Jan 2010 10:42:26 +0300
Subject: [PATCH] ieinstall: use xdg-user-dir for shortcuts creating (eterbug #4903)

---
 etersoft/ies4linux/lib/functions.sh |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/etersoft/ies4linux/lib/functions.sh b/etersoft/ies4linux/lib/functions.sh
index 017d7c0..c1d19ac 100644
--- a/etersoft/ies4linux/lib/functions.sh
+++ b/etersoft/ies4linux/lib/functions.sh
@@ -19,12 +19,16 @@ else
 fi
 
 END
+
+        DESKTOPDIR=`xdg-user-dir DESKTOP 2>/dev/null`
+        [ -z "$DESKTOPDIR" ] && DESKTOPDIR="$HOME/Desktop"
+
 #        chmod +x "$BINDIR/$1"
         chmod +x "$BINDIR/ie6/$1"	
         if [ "$CREATE_ICON" = "1" ]; then
 #               if cd ~/Desktop || cd ~/desktop; then
-                if [ -d "$HOME/Desktop" ] ; then 
-		        cd "$HOME/Desktop"
+                if [ -d "$DESKTOPDIR" ] ; then
+                        cd "$DESKTOPDIR"
 			"$IES4LINUX/lib/mkicon" \
 		          Exec \""$BINDIR/ie6/$1"\" \
 		          Icon "$BINDIR"/ie6/ies4linux.svg \
-- 
1.6.5.8



Подробная информация о списке рассылки Wine-patches