Kodi Community Forum

Full Version: Making XBMC quit and then restarting when launching a program?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using the launcher plugin to start apps and games from xbmc but the performance kinda sucks since xbmc is still running in the background.

I saw someone somewhere meantioning something about a script that makes xbmc quit when starting an app/game and then restarting again but I cant find info about it anywhere.

Help please? Smile
Example 1) simple bash scripts (i'm using something similar)
http://forum.xbmc.org/showthread.php?tid=34635

Example 2) perl script to switch between mythtv and xbmc
http://www.xpmediacentre.com.au/communit...html?pp=40

Example 3) Or just a simple but effective script like this, so clossing xbmc opens VDR in this example and closing vdr opens xbmc.

#!/bin/bash
NEXT=xbmc;
while true;
do
case "$NEXT" in
"xbmc")
xbmc
NEXT=VDR;
;;
"VDR")
startvdr
NEXT=xbmc;
;;
esac
done
I like basic

#!/bin/bash

killall -s 9 -w -r xbmc
/usr/games/supertux2
/usr/bin/xbmc
JackieBrown Wrote:I like basic

#!/bin/bash

killall -s 9 -w -r xbmc
/usr/games/supertux2
/usr/bin/xbmc

This has always worked for me with sdlmame and diablo ^_^