I am sorry, i feel like i am hijacking this thread, but i do no know where else to post this question.
I am using Xbian as base distro and cloned, compiled and configured RetroPie with selected emulators. Works great! The only problem remaining is that i have to exit xbmc and enter username and password to start emulation station from terminal. I would like to use a script to automatically start ES as soon as i exit xbmc but when i start the script as a cronjob without sudo i get nothing but a login prompt and when i start ES with a sudo i get a white dot in the middle of the screen. ES really doesn't like to be started with super user rights.
Here is the script i am using:
Code: Select all
#!/bin/bash
echo Waiting for XBMC to start...
while ( ! pidof -s xbmc.bin)
do
echo XBMC not present, waiting...
sleep 5
done
echo XBMC found, waiting for it to get closed
while (pidof -s xbmc.bin)
do
echo XBMC present, waiting...
sleep 5
done
echo XBMC gone, starting ES...
/home/xbian/RetroPie/supplementary/EmulationStation/emulationstation &
this is what i have tried so far to start that script:
"sudo crontab -e" ES only starts to a white dot on the screen
"crontab -e" login prompt
modifying "rc.local" to start this script: login prompt
starting the script without the part where it waits for xbmc to be started after i logged in and executed the script from command line: works fine.
starting ES from command line without sudo: Works fine.
starting ES from command line with sudo: White dot.
Thanks for reading and sorry if this is off topic.