summarylogtreecommitdiffstats
path: root/retroarch-standalone.xinitrc
diff options
context:
space:
mode:
Diffstat (limited to 'retroarch-standalone.xinitrc')
-rw-r--r--retroarch-standalone.xinitrc15
1 files changed, 13 insertions, 2 deletions
diff --git a/retroarch-standalone.xinitrc b/retroarch-standalone.xinitrc
index 363ecfbf17a7..5d1dc1ea14a2 100644
--- a/retroarch-standalone.xinitrc
+++ b/retroarch-standalone.xinitrc
@@ -6,10 +6,21 @@ xset -dpms # disable DPMS (Energy Star) features.
xset s noblank # don't blank the video device
# Hide mouse cursor
-unclutter -display :0.0 -noevents -grab -root -reset &
+unclutter -display :0.0 -root &
# Clean old debug logs
rm /home/retroarch/debug.log 2>&1 >&/dev/null
# Autostart Retroarch
-exec /usr/bin/retroarch --appendconfig=/etc/retroarch-standalone.cfg -v 2>&1 >&/home/retroarch/debug.log
+exit_code=1
+while [ "$exit_code" -ne "0" ]
+do
+ /usr/bin/retroarch --appendconfig=/etc/retroarch-standalone.cfg -v --log-file /home/retroarch/debug.log
+ exit_code=$?
+done
+
+if [ -x "/home/retroarch/.xinit_exit" ]
+then
+ /home/retroarch/.xini_exit
+fi
+