Modify startx.in and xinitrc to export ENV variables for launching wm in xinit 57/9057/1
authorSung-Jin Park <sj76.park@samsung.com>
Thu, 23 May 2013 10:18:11 +0000 (06:18 -0400)
committerBoram Park <boram1288.park@samsung.com>
Mon, 2 Sep 2013 08:05:04 +0000 (17:05 +0900)
Change-Id: Ibdbef8074405f9f23d2940887d64a5f0261fb8ce

arm-common/startx.in
arm-common/xinitrc

index f3bf9c6..0cd15fd 100755 (executable)
@@ -36,6 +36,12 @@ else
 
                Xorg ${XSERVER_OPTIONS} &
        else
+               export WMRC=/etc/X11/wmrc
+               export WMUSERID=`id -u app`
+               export WMGROUPID=`id -g app`
+               export WMUSER=app
+               export WMUSERHOME=/opt/home/app
+
                xinit ${XINITRC} -- @PREFIX@/bin/Xorg ${XSERVER_OPTIONS} &
        fi
 fi
index ce851e6..f2060e1 100755 (executable)
@@ -11,17 +11,3 @@ if [ -x /usr/bin/xrdb ]; then
        fi
 fi
 
-# Copy .e directory if not exist
-export HOME=/opt/home/app
-
-if [ ! -d ${HOME}/.e ]; then
-       cp -rf /opt/home/root/.e ${HOME}/.e
-       chown -R app:app ${HOME}/.e
-fi
-
-E17_USER=`id -u app`
-E17_GROUP=`id -g app`
-HOME=/opt/home/app USER=app EVAS_NO_DRI_SWAPBUF=1 /usr/bin/enlightenment_start -profile samsung -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it -user ${E17_USER} -group ${E17_GROUP} &
-
-#su -c "HOME=/opt/home/app /usr/bin/enlightenment_start -profile samsung -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it &" -l app
-