#!/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
/usr/bin/set_hd_mode.sh >> $HOME/set_hd_mode.log

export LD_PRELOAD=/usr/lib64/libmodeswitch_inhibitor.so.0.0.0:/usr/lib/libmodeswitch_inhibitor.so.0.0.0

# 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

# Workaround for Steam login issue while Steam client change propagates out of Beta
#touch ~/.steam/root/config/SteamAppData.vdf || true

steam -tenfoot -steamos -enableremotecontrol
