summaryrefslogtreecommitdiffstats
path: root/extra/ede1/startede
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-02-22 20:32:33 +0100
committertnut <thierryn1 at hispeed dot ch>2010-02-22 20:32:33 +0100
commita516a0e184ffaf242d5b9cf134f4808643405af4 (patch)
tree863c6d91aa718078f670c61654510afc0185c349 /extra/ede1/startede
parent5afc7fc1df7fff2d0ccad1d1edfb8312588032e9 (diff)
downloadnutyx-extra-a516a0e184ffaf242d5b9cf134f4808643405af4.tar.gz
nutyx-extra-a516a0e184ffaf242d5b9cf134f4808643405af4.tar.bz2
nutyx-extra-a516a0e184ffaf242d5b9cf134f4808643405af4.tar.xz
nutyx-extra-a516a0e184ffaf242d5b9cf134f4808643405af4.zip
Ajout de ede1#1.2-1
Diffstat (limited to 'extra/ede1/startede')
-rw-r--r--extra/ede1/startede49
1 files changed, 49 insertions, 0 deletions
diff --git a/extra/ede1/startede b/extra/ede1/startede
new file mode 100644
index 000000000..272ef78a5
--- /dev/null
+++ b/extra/ede1/startede
@@ -0,0 +1,49 @@
+#!/bin/sh
+# $Id: $
+
+PREFIX=/usr
+XSSAVER=`which xscreensaver 2> /dev/null`
+XSETROOT=`which xsetroot 2> /dev/null`
+
+userresources=$HOME/.Xdefaults
+sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
+
+if [ -f $sysresources ]; then
+ xrdb -merge $sysresources
+fi
+
+if [ -f $userresources ]; then
+ xrdb -merge $userresources
+fi
+
+PATH=$PATH:$PREFIX:$PREFIX/bin
+export PATH
+
+if [ -x $HOME/.ede ]; then
+ echo "EDE home dir exists, ok."
+else
+ echo "Default EDE home dir for user $HOME does not exist. Creating one..."
+ cp -R $PREFIX/share/ede/.ede $HOME
+fi
+
+# If we have xsetroot than script shoult run it
+if [ "$XSETROOT" ]; then
+ $XSETROOT -solid black
+fi
+
+# Test if XScreenSaver is somewhere in PATH, if not - don't start it
+if [ "$XSSAVER" ]; then
+ xscreensaver -nosplash &
+fi
+ if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
+ eval `dbus-launch --sh-syntax --exit-with-session`
+ export DBUS_SESSION_BUS_ADDRESS
+ fi
+if [[ "$EUID" == 0 ]] ; then
+ sed -i "s@Wallpaper=/usr/share/ede/.ede/WallPaper.jpg@Wallpaper=$HOME/.ede/RootWallPaper.png@" $HOME/.ede/ede.conf
+fi
+
+exec edewm &
+exec eiconman &
+etip &
+exec eworkpanel