-
Notifications
You must be signed in to change notification settings - Fork 70
Starting Programs alongside SteamOS
Table of Contents generated with DocToc
This section details how to attempt to start a program along side the normal user experience under steamcompmgr (the compositor) / SteamOS. When After the boot process, the session launches using the /usr/bin/steamos-session
script, seen below.
The file (as of 20160630) appears as so:
#!/bin/sh
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
export HOMETEST_DESKTOP=1
export HOMETEST_USER=steam
export HOMETEST_DESKTOP_USER=desktop
export HOMETEST_DESKTOP_SESSION=gnome
/usr/bin/steamos/set_hd_mode.sh >> $HOME/set_hd_mode.log
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libmodeswitch_inhibitor.so:/usr/lib/i386-linux-gnu/libmodeswitch_inhibitor.so
# Disable DPMS and screen blanking for now; it doesn't know about controller
# or Steam remote control events right now
xset -dpms
xset s off
steamcompmgr &
loadargb_cursor /usr/share/icons/steam/arrow.png
steam -tenfoot -steamos -enableremotecontrol
You can typically attempt to load a program alongside steamos-session/SteamOS if the program does not require a GUI, or if the program can run in the background without issue. This is not guaranteed to work, so your mileage may vary.
PLEASE ensure you have a proper backup of your system and/or /usr/bin/steamos-session
before attempting this!
For example, say we want to load "my_script.sh" with steamos-session:
my_script.sh &
steamcompmgr &
Modify the line above steamcompmgr &
to include your desired program. Again, this is not guaranteed to work.