summarylogtreecommitdiffstats
path: root/retroarch-standalone.xinitrc
blob: 5d1dc1ea14a2170f0c4de65e100ab6a614389571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

# Disable all energy save features, and leave the monitor always on
xset s off         # don't activate screensaver
xset -dpms         # disable DPMS (Energy Star) features.
xset s noblank     # don't blank the video device

# Hide mouse cursor
unclutter -display :0.0 -root &

# Clean old debug logs
rm /home/retroarch/debug.log 2>&1 >&/dev/null

# Autostart Retroarch
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