• 1
  • 33
  • 34
  • 35(current)
  • 36
  • 37
  • 89
[RELEASE] Steam Launcher - Start Steam Big Picture Mode from within Kodi
I recently made the switch to Windows 8.1, Kodi alpha 4 and Steam run beautifully together. I have EventGhost to replace the shell and it only starts up DS4Windows (for my Dual Shock 4 controller) and Kodi at the start, and if I want to use the desktop I have it set to execute explorer.exe upon quitting Kodi. With teeedubb's Steam Launcher add-on, it really feels like a set top appliance now.
Reply
Smile

That's pretty much how I've setup windows too.

A note of caution, the add-on will break with kodi builds - XBMC.exe has changed to kodi.exe so kodi will not be terminated, last I checked the windows names hadn't changed, but I wouldn't be surprised if it were to happen before kodi 14 final so minimizing/maximizing may break.

I'm going to wait till kodi 14 is released before updating the addon so all the changes are final - the add-on uses different methods for launching/detecting steam/XBMC across 5 different groups of operating systems.
Reply
Ah, Steam BPM just starts up leaving Kodi in the background for me. After exiting it just goes back to Kodi. Is the add-on meant to close/minimize it? For what it's worth, it's gone about without a hitch so far.
Reply
Default behavior is to quit xbmc, though you can configure the addon to minimize/maximize instead, though I'm not sure if thats working with recent alpha kodi builds.
Reply
I'm trying this script with latest SteamOS and XBMC from http://mirrors.xbmc.org/apt/steamos.
Script says:
Code:
$ "/home/steam/.xbmc/userdata/addon_data/script.steam.launcher/scripts/steam-launch.sh" "/usr/bin/steam" "/usr/bin/xbmc" "0" "false" "false" "false"
method return sender=:1.8 -> dest=:1.79 reply_serial=2
Reply
The add-on uses steamos's built in mechanism for returning to the steam session from the desktop, does the desktop icon 'return to steam' or the command '/usr/bin/returntosteam.sh' work?

Also how are you running XBMC? I'm the gnome session or replacing the gnome session so it runs in its own?
Reply
I've replaced steamos.desktop content with XBMC.desktop to boot into XBMC rather than steam by default.
Reply
Without looking at the contents of the returntosteam.sh script I'd say that's your issue - its probably trying to change to the session youre already in (the XBMC one). You most likely will need to tweak returntosteam.sh script and any others you've used to be compatible with your modifications.
Reply
New version in first post, v2.2.0 - Pre Sequel Edition
Quote:Linux: Added a check for the the program 'wmctrl' which is a external dependency, check can be disabled in addon settings (eg for SteamOS users running XBMC in its own session)
Addon will exit if the addon settings are opened via the script, so any changes can be reloaded.
Reply
@DenisBY I had a look at the returntosteam.sh script and running it switches to the steam user via dbus. Since youve replace the steamos session with the XBMC session you are running XBMC as the steam user (as opposed to the method in my guide where XBMC runs as the desktop user). You may be able to get your method working, but I think it would be a lot of work - it would be easier and you would change less of the underlying operating system to leave the steamos session as is and change lightdm to autologin to the desktop user/modified gnome session instead of the steamos session.
Reply
(2014-05-29, 09:43)teeedubb Wrote: /etc/udev/rules.d/99-joysticks.rules
Code:
ACTION=="add", KERNEL=="js*", DRIVERS=="xpad", RUN+="/usr/bin/.scripts/xbmc-xbox360-pad-fix.sh"

xbmc-xbox360-pad-fix.sh
Code:
#!/bin/bash
curl -v -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"input.enablejoystick","value":false},"id":1}' http://localhost:9191/jsonrpc
sleep 1
curl -v -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"input.enablejoystick","value":true},"id":1}' http://localhost:9191/jsonrpc

Make xbmc-xbox360-pad-fix.sh executable with the chmod +x command.

Your suggestion was very helpful, great idea!

But for reasons I don't understand it didn't work as it should. Using curl to POST to the json server I consistently got 400: Bad Request. Using wget it worked from other hosts but not from localhost. When I tried running it with strace to see what was going on it worked perfectly :S

I know, very weird. probably some timing issue. I've been at it for over an hour and came out empty handed.

What I ended up doing is connect to the http server and send the request as a GET, here's my version of your xbmc-xbox360-pad-fix.sh:
Code:
#!/bin/sh
wget -O- -q  'http://<USER>:<PASSWORD>@localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"input.enablejoystick","value":false},"id":1}'

sleep 1

wget -O- -q  'http://<USER>:<PASSWORD>@localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"input.enablejoystick","value":true},"id":1}'

FTR, my curl version is:
Code:
curl --version
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP

And I'm running xbmcbuntu gotham with all packages up to date.
Reply
(2014-10-16, 00:23)teeedubb Wrote: @DenisBY I had a look at the returntosteam.sh script and running it switches to the steam user via dbus. Since youve replace the steamos session with the XBMC session you are running XBMC as the steam user (as opposed to the method in my guide where XBMC runs as the desktop user). You may be able to get your method working, but I think it would be a lot of work - it would be easier and you would change less of the underlying operating system to leave the steamos session as is and change lightdm to autologin to the desktop user/modified gnome session instead of the steamos session.

Thanks. I'll try to load into desktop instead of steam session.
Reply
I did it! I've edited /etc/lightdm/lightdm.conf and changed
autologin-user=steam
to
autologin-user=desktop

But I also had to copy XMBC.desktop over gnome.desktop

Now SteamOS boots into XMBC by default and switching to Steam and back to XBMC works as expected.
Reply
Is it possible to launch the steam store via xbmc gotham 13.2 on amazon fire tv?
Reply
After applying the newest update my issue has now been resolved, the script runs and Steam opens flawlessly. Not sure what changed to fix it but I'll take it.

Thanks for all the hard work and support you give teeedubb, the world needs more people like you.
Reply
  • 1
  • 33
  • 34
  • 35(current)
  • 36
  • 37
  • 89

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Steam Launcher - Start Steam Big Picture Mode from within Kodi7