32 lines
916 B
Python
32 lines
916 B
Python
|
import logging
|
||
|
import subprocess
|
||
|
from time import sleep
|
||
|
|
||
|
#export SDL_VIDEO_X11_VISUALID= #"0x074"
|
||
|
#textmode is no video output, what botox used
|
||
|
|
||
|
|
||
|
#-connect 151,80.230.149:27015
|
||
|
|
||
|
|
||
|
#subprocess.call(["steam", "steam://install/240"])
|
||
|
|
||
|
#sleep(20)
|
||
|
#server_ip_ze = "151.80.230.149:27015"
|
||
|
#subprocess.Popen(["steam", "steam://connect/" + server_ip_ze])
|
||
|
|
||
|
#steam steam://connect/151.80.230.149:27015
|
||
|
#steam steam://connect/151.80.230.149:27019/test132
|
||
|
|
||
|
#-nopreload seemingly prevents from joining servers
|
||
|
#cd /home/nonroot/.steam/
|
||
|
#./steam.sh -applaunch 240 -textmode -novid -nosound -noipx -nojoy -noshaderapi -condebug +exec looptest.cfg
|
||
|
#
|
||
|
|
||
|
def joinsteam():
|
||
|
subprocess.Popen(["steam", "-login", "username","password"])
|
||
|
sleep(25)
|
||
|
subprocess.Popen(["/home/nonroot/.steam/steam.sh", "-applaunch 240 -textmode -novid -nosound -noipx -nojoy -noshaderapi -condebug +exec looptest.cfg"])
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
joinsteam()
|