Run a script after killing lxsession (xorg)

Posted by user284194 on Super User See other posts from Super User or by user284194
Published on 2012-09-22T05:19:14Z Indexed on 2012/09/22 15:40 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

I am trying to run a program automatically within a bash script after killing the LXDE session. My script consists of:

#!/bin/sh
pkill lxsession;
sh /home/pi/RetroPie/EmulationStation/emulationstation

My aim is to log out of the LXDE session and run EmulationStation on my Raspberry Pi with a bash script. I'm using pkill lxsession; to bypass lxsession's logout confirmation dialog.

As it stands, this script just gets me to the command line from a working LXDE desktop. Thanks for reading.

© Super User or respective owner

Related posts about linux

Related posts about bash