[RELEASE] Steam Launcher - Start Steam Big Picture Mode from within Kodi

  Thread Rating:
  • 5 Vote(s) - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
teeedubb Offline
Donor
Posts: 2,906
Joined: Mar 2010
Reputation: 68
Location: Down Under
Post: #721
You can shutdown steam with

steam -shutdown

I don't use emulators on Linux but in windows I forcibly kill the emulator process (because some emulators use alt f4, some ESC etc), so something like

killall -9 emulator_name

I have one entry for each emulator I use in a script that's mapped to a remote button. Only thing is that any config changes arent saved, so when you're configuring the emulator you need to exit it properly.
find quote
tocinillo Online
Fan
Posts: 342
Joined: Dec 2010
Reputation: 10
Post: #722
Yeah! Finally I wrote this script that works PERFECTLY!!!!

First of all follow this instructions for Kodibuntu (I don't apply the PulseAudio because I use ALSA for all): http://forum.kodi.tv/showthread.php?tid=...pid1919154

Then put the following in a terminal:

sudo nano $HOME/.config/openbox/start.sh

And paste this code:

Quote:#!/bin/bash
while [ 1 ] # do forever
do
steampid=$(pidof steam)
kodipid=$(pidof kodi.bin)
firefoxpid=$(pidof firefox)
if [ -z $kodipid ]; then # checks if kodi is running if not..
if [ -z $steampid ]; then # checks if steam is running if not...
if [ -z $firefoxpid ]; then # checks if firefox is running if not...
/usr/bin/kodi
else # If Firefox is running, then....
echo ""
fi
else # If Steam is running, then....
echo ""
fi
sleep 1
else # If Kodi is running, then....
echo ""
fi
sleep 1
done
done &

Save it (CTRL+X and then ENTER) and now in a terminal again put:

sudo nano $HOME/.config/openbox/autostart.sh

change the line /usr/bin/kodi & with /home/YOURUSERNAME/.config/openbox/start.sh & ; save it and restart.

EDIT: I wrote it with 3 variables (Kodi, Firefox and Steam). If you don't use Firefox, please, use this script instead the previous:

Quote:#!/bin/bash
while [ 1 ] # do forever
do
steampid=$(pidof steam)
kodipid=$(pidof kodi.bin)
firefoxpid=$(pidof firefox)
if [ -z $kodipid ]; then # checks if kodi is running if not..
if [ -z $steampid ]; then # checks if steam is running if not...
/usr/bin/kodi
else # If Steam is running, then....
echo ""
fi
sleep 1
else # If Kodi is running, then....
echo ""
fi
sleep 1
done
done &

Make executable the script with sudo chmod +x $HOME/.config/openbox/start.sh

HOW WORKS THE SCRIPT?

Ok. The complete script (3 variables) works like:

- If Kodi is running, nothing happens.
- If Kodi isn't running BUT Steam yes, nothing happens (With Steam launcher and the "quit kodi" option enabled, only Steam is runnning).
- If Kodi isn't running, Steam isn't running BUT Firefox yes, nothing happens (you only have running Firefox).
- If Kodi isn't running, Steam isn't running and Firefox isn't running, Kodi starts again (very useful for ocasionally Kodi crashes).

EDIT2: For launch Firefox or another browser I use this script with Executor (or Advanced Launcher):

Quote:#!/bin/bash
killall -9 kodi.bin
firefox
killall -9 firefox
/usr/bin/kodi

Regards.
(This post was last modified: 2015-03-03 14:10 by tocinillo.)
find quote
Raytestrak Offline
Donor
Posts: 373
Joined: Sep 2011
Reputation: 3
Post: #723
(2015-03-03 00:07)teeedubb Wrote:  You can shutdown steam with

steam -shutdown

I don't use emulators on Linux but in windows I forcibly kill the emulator process (because some emulators use alt f4, some ESC etc), so something like

killall -9 emulator_name

I have one entry for each emulator I use in a script that's mapped to a remote button. Only thing is that any config changes arent saved, so when you're configuring the emulator you need to exit it properly.

I didn't know I could map commands to irexec. Nice. The emulation is also being streamed, so I can't kill the emulator directly. Alt-F4 works in steam (meaning it kills steam), but not while the emulator is active (seemingly only F4 gets accepted. Alt-F4 works when I use my keyboard, but not when using irexec (again, it does work while steam is active). I'm going to try steam -shutdown, although that will keep anything running on my game pc upstairs running, so it's not perfect.

XBMCbuntu on an Intel NUC (DC3217IYE). Onkyo NR-717. Canton Movie CD-1000. LG 42LM760S

If it ain't broke: break it, fix it, repeat
find quote
jlnprssnr Offline
Junior Member
Posts: 10
Joined: Jan 2015
Reputation: 0
Post: #724
Is there a way to launch steam big picture mode directly into game library view? (Windows 8.1) That would be awesome Smile
(This post was last modified: Yesterday 17:28 by jlnprssnr.)
find quote
Post Reply