pandora-skel: .xinitrc fixes
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 9 May 2016 23:37:27 +0000 (02:37 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 10 May 2016 23:20:56 +0000 (02:20 +0300)
finally solve that stray "Failed to execute login command"

recipes/pandora-system/pandora-skel.bb
recipes/pandora-system/pandora-skel/.xinitrc

index 5245c74..c60e819 100644 (file)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 # /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;)
 RDEPENDS = "shadow"
 
 # /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;)
 RDEPENDS = "shadow"
 
-PR = "r31"
+PR = "r32"
 
 SRC_URI = " \
   file://.xinitrc \     
 
 SRC_URI = " \
   file://.xinitrc \     
index fd4bb3f..8c57d69 100644 (file)
@@ -110,11 +110,18 @@ do
 
        if [ "$SESSION" == "" ]
        then
 
        if [ "$SESSION" == "" ]
        then
-               exit 1
+               # wait for all Xfce processes to exit cleanly
+               wait
+
+               # report success to slim
+               exit 0
        fi
 
        $SESSION
         
        fi
 
        $SESSION
         
+       # lame hack
+       killall configbutton 2> /dev/null
+
        SESSION=$(cat /tmp/gui.load 2> /dev/null)
        STOP_SESSION=$(grep $SESSION /etc/pandora/conf/gui.conf | awk -F\; '{print $4}')
         echo $STOP_SESSION > /tmp/gui.stop
        SESSION=$(cat /tmp/gui.load 2> /dev/null)
        STOP_SESSION=$(grep $SESSION /etc/pandora/conf/gui.conf | awk -F\; '{print $4}')
         echo $STOP_SESSION > /tmp/gui.stop