# [RELEASE] Steam Launcher

• 1 Votes - 5 Average
• 1
• 2
• 3
• 4
• 5
 Donor Posts: 1,546 Joined: Mar 2010 Reputation: 25 Location: Down Under 2013-02-25 07:23 Post: #1 I've put together a basic addon to launch Steam from XBMC. It will close XBMC, launch Steam in Big Picture mode and when Steam is exited XBMC will restart. It works with Windows and Linux (quite possibly OSX, but this hasnt been tested). XBMCbuntu users read here first. A very nice bonus is Steam also comes with a full featured web browser that can be controlled with a game pad or remote and plays back flash content. The default settings within the addon will work provided Steam and XBMC are installed in their default directories. To make changes once the addon is installed, eg for non standard install locations of Steam or XBMC edit either: Windows: Code: %appdata%\XBMC\addons\script.steam.launcher\resources\scripts\steam-launch.bat Linux: Code: ~/.xbmc/addons/script.steam.launcher/resources/scripts/steam-launch.sh Linux users need to have the program 'wmctrl' installed (there's a good chance it already is, run wmctrl from the command prompt to see). Previous version's Backup any changes you have made to the scripts as they will be overwritten when updating. Make sure to restart xbmc prior to updating if xbmc was opened by the addon (ie, after running steam) otherwise updating will fail. DOWNLOAD LATEST v0.5.2 XBMC Steam Launcher - Only available for XBMC. (This post was last modified: 2013-12-06 23:22 by teeedubb.) find
 Fan Posts: 312 Joined: Jul 2007 Reputation: 2 2013-04-26 06:47 Post: #2 As Steam Big Picture Mode now has a 'Exit Steam' option which truly shuts down Steam rather than minimizing to tray, is it possible to reconfigure this program to leave XBMC in the background and then switch back to XBMC once Steam is exited? I have Advanced Launcher doing this right now but I'd like to go to Steam directly has I have no interest in launching anything other than Steam and going back to XBMC. find
 Donor Posts: 1,546 Joined: Mar 2010 Reputation: 25 Location: Down Under 2013-04-26 23:55 Post: #3 Yes its possible. Open the zip file and edit default.py and in the second line remove Quote:taskkill /f /IM XBMC.exe && . But launching games and emulators over xbmc has always give me problems - xbmc accepting controller inputs while games are playing, games/emulators having no sound, xbmc not getting focus on game exit and xbmc using a significant amount of cpu. Do you not get this problem? I would try changing the second line in default.py to this Quote:os.system('taskkill /f /IM XBMC.exe && timeout 1 && E:\Steam\steam.exe -bigpicture && timeout 1 && C:\path\to\XBMC.exe') to have xbmc killed, steam launched and when exited xbmc is relaunched. XBMC Steam Launcher - Only available for XBMC. (This post was last modified: 2013-04-27 00:02 by teeedubb.) find
 Junior Member Posts: 9 Joined: Aug 2011 Reputation: 0 2013-05-11 05:27 Post: #4 I tried running your script but for some reason nothing is happening. I tried to check via task manager and steam doesn't seem to load. I have already also input the path of my steam.exe on deafault.py I'm using Win 8 64bit also btw find
 Donor Posts: 1,546 Joined: Mar 2010 Reputation: 25 Location: Down Under 2013-05-11 06:39 Post: #5 Does the command within default.py work when run from the command prompt? XBMC Steam Launcher - Only available for XBMC. find
 Junior Member Posts: 9 Joined: Aug 2011 Reputation: 0 2013-05-11 08:13 Post: #6 (2013-05-11 06:39)teeedubb Wrote:  Does the command within default.py work when run from the command prompt? Oh you mean running it on command prompt? I'm not sure on how to run default.py on cmd, it's just giving me message that it couldn't run I might be doing something wrong though? Apologies on being such a noob! find
 Donor Posts: 1,546 Joined: Mar 2010 Reputation: 25 Location: Down Under 2013-05-11 10:07 Post: #7 Yeah, open xbmc, un-fullscreen xbmc with the / button and press the windows button, then type cmd, enter. Now use your version of commands contained in default.py inside os.system(' '), for example, if I wanted to test it from the command prompt i would type in Code: taskkill /f /IM XBMC.exe && timeout 1 && E:\Steam\steam.exe -bigpicture XBMC Steam Launcher - Only available for XBMC. find
 Fan Posts: 312 Joined: Jul 2007 Reputation: 2 2013-05-11 19:55 Post: #8 (2013-04-26 23:55)teeedubb Wrote:  Yes its possible. Open the zip file and edit default.py and in the second line remove Quote:taskkill /f /IM XBMC.exe && . But launching games and emulators over xbmc has always give me problems - xbmc accepting controller inputs while games are playing, games/emulators having no sound, xbmc not getting focus on game exit and xbmc using a significant amount of cpu. Do you not get this problem? I would try changing the second line in default.py to this Quote:os.system('taskkill /f /IM XBMC.exe && timeout 1 && E:\Steam\steam.exe -bigpicture && timeout 1 && C:\path\to\XBMC.exe') to have xbmc killed, steam launched and when exited xbmc is relaunched. Keeping XBMC in the background doesn't seem to make any noticeable influence on game playback on my machine, A8-3870k with 16GB RAM. I run XBMC in true full screen so it minimizes to the background. I stripped your script down a lot however, I was already using a batch file with nircmd to have Windows do a force focus back to XBMC when Steam closes. I actually just cut your script down to do nothing but execute that batch file. I found one hangup that you may want to specify in your first post however: You don't JUST need to write in the location of Steam in default.py, you ALSO need to do it with 8.3 file name conventions. c:\program files (x86)\steam\steam.exe is no good for example, it has to be c:\progra~2\steam\steam.exe or else your script only tries to execute 'c:\program' and stops there. Once I figured this out and figured out the 8.3 conventions, it worked fine. I imagine you didn't notice this yourself because your steam location uses folders/filenames with only 8 characters and no spaces. (This post was last modified: 2013-05-11 19:56 by DJ_Izumi.) find
 Donor Posts: 1,546 Joined: Mar 2010 Reputation: 25 Location: Down Under 2013-05-12 04:18 Post: #9 Thanks for pointing that out. Since the first post I changed my setup so steam was on the ssd with the game data on a hdd and ran into the same problem, but got around it by putting quotes around the command. So now the command within default.py looks like Quote:os.system('taskkill /f /IM XBMC.exe && timeout 1 && "C:\Program Files (x86)\Steam\steam.exe" -bigpicture') Ill update the first post with this info. XBMC Steam Launcher - Only available for XBMC. find
 Junior Member Posts: 9 Joined: Aug 2011 Reputation: 0 2013-05-12 05:06 Post: #10 I was able to run the script on command line and it ran Steam! But when I tried to launch it via XBMC, nothing happens, apart from quitting XBMC. Edit: Might as well paste my 2nd line of default.py Code: os.system('taskkill /f /IM XBMC.exe && timeout 1 && "C:\Program Files (x86)\Steam\steam.exe" -bigpicture') (This post was last modified: 2013-05-12 05:10 by inque54.) find
• Search
• Help
• Create Account