aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Samir <ahmad@mageia.org>2011-02-20 15:30:58 +0000
committerAhmad Samir <ahmad@mageia.org>2011-02-20 15:30:58 +0000
commitbaf0a34fd9058d6cabcfcb089755289d75ca54ed (patch)
tree23e8c7737f1aba2ed4456d2dbbb6fe53827bc0e8
parent8f55f92e464725fd9a7187b76cb25184587c599b (diff)
downloadconfig-baf0a34fd9058d6cabcfcb089755289d75ca54ed.tar
config-baf0a34fd9058d6cabcfcb089755289d75ca54ed.tar.gz
config-baf0a34fd9058d6cabcfcb089755289d75ca54ed.tar.bz2
config-baf0a34fd9058d6cabcfcb089755289d75ca54ed.tar.xz
config-baf0a34fd9058d6cabcfcb089755289d75ca54ed.zip
- correct the xfce4-firstrun script
-rw-r--r--ChangeLog4
-rw-r--r--tools/xfce4-firstrun11
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 69dee12..324c126 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-20 17:29 Ahmad Samir <ahmadsamir3891 at gmail.com>
+ * tools/xfce4-firstrun:
+ - correct the xfce4-firstrun script
+
2011-02-20 17:21 Ahmad Samir <ahmadsamir3891 at gmail.com>
* common/xfce4/panel/xfce4-menu-5.rc:
- use mageia.png for the menu
diff --git a/tools/xfce4-firstrun b/tools/xfce4-firstrun
index d6be828..330b7cf 100644
--- a/tools/xfce4-firstrun
+++ b/tools/xfce4-firstrun
@@ -2,7 +2,7 @@
# Simple script which configure Xfce environment for a fresh user
# Author: tpg@mandriva.org
# Licensed under GPL terms
-
+MGA_FLAVOUR=`echo $META_CLASS`
USER_DESKTOP=`xdg-user-dir DESKTOP`
DESKTOP_FILE=$HOME/.config/autostart/xfce4-firstrun.desktop
@@ -22,6 +22,7 @@ Hidden=true
EOF
#
+ if [ $MGA_FLAVOUR = "download" -o $MGA_FLAVOUR = "desktop" ]; then
if [ ! -e $USER_DESKTOP/mageia-draklive-install.desktop ]; then
cp -f /usr/share/applications/mageia-draklive-install.desktop $USER_DESKTOP 2> /dev/null
fi
@@ -29,7 +30,15 @@ EOF
xfdesktop --reload 1> /dev/null; echo "xfce4-firstrun: xfdesktop reloaded.";
fi
exit || 0
+ else
+ if [ ! -e $USER_DESKTOP/mandriva-draklive-install.desktop ]; then
+ cp -f /usr/share/applications/mandriva-draklive-install.desktop $USER_DESKTOP 2> /dev/null
+ fi
+ if [ "$(pidof xfdesktop)" ]; then
+ xfdesktop --reload 1> /dev/null; echo "xfce4-firstrun: xfdesktop reloaded.";
+ fi
+ exit || 0
fi
else echo "xfce4-firstrun: make sure you have installed xdg-user-dirs-gtk and xdg-user-dir packages."
fi