2014-02-10, 02:01
Thank you for your work teedubb.
I am using XBMC on my Mac Mini, and unfortunately, your case switch statement does not work for OSX.
I have been tweaking it a bit and managed to get it working(while running the script outside XBMC and with Advanced Launcher), however not with your add-on.
Also, if Steam is already running, it will give me an error message saying another instance is already running, so somehow the "$STEAM_LOCATION steam://open/bigpicture" does not work.
I have also commented out the while loop as I currently would like to have XBMC going in the background. (I may change this though, if I see my Steam In Home Stream gaming lagging)
Here is what I have so far:
XBMC_PID=$(ps -A | grep XBMC.app | grep -v Helper | grep -v grep | awk '{print $1}')
XBMC_BIN=$(ps -A | grep XBMC.app | grep -v Helper | grep -v grep | awk '{print $4}')
STEAM_PID=$(ps -A | grep Steam.app | grep -v Helper | grep -v grep | awk '{print $1}')
STEAM_BIN=$(ps -A | grep Steam.app | grep -v Helper | grep -v grep | awk '{print $4}')
STEAM_LOCATION=/Applications/Steam.app/Contents/MacOS/steam.sh
XBMC_LOCATION=/Applications/XBMC.app/Contents/MacOS/XBMC
# Is Steam running?
if [ $STEAM_PID ];
then
$STEAM_LOCATION steam://open/bigpicture #steam is brought to focus better this way # Does not work!
echo "Steam already running"
else
echo "Steam not running, launching"
# kill $XBMC_PID
$STEAM_LOCATION -bigpicture
fi
# Wait for Steam to exit
# while [ $STEAM_PID ];
# do
# echo "Steam running"
# sleep 1
# done
# $XBMC_LOCATION &
#
As you can see, I haven't changed that much in your code (only OSX default application location and a minor change of awk command regarding the PID(from $5 to $4))
Again thank you for this add-on, and I hope this will be of some help to others.
I am using XBMC on my Mac Mini, and unfortunately, your case switch statement does not work for OSX.
I have been tweaking it a bit and managed to get it working(while running the script outside XBMC and with Advanced Launcher), however not with your add-on.
Also, if Steam is already running, it will give me an error message saying another instance is already running, so somehow the "$STEAM_LOCATION steam://open/bigpicture" does not work.
I have also commented out the while loop as I currently would like to have XBMC going in the background. (I may change this though, if I see my Steam In Home Stream gaming lagging)
Here is what I have so far:
XBMC_PID=$(ps -A | grep XBMC.app | grep -v Helper | grep -v grep | awk '{print $1}')
XBMC_BIN=$(ps -A | grep XBMC.app | grep -v Helper | grep -v grep | awk '{print $4}')
STEAM_PID=$(ps -A | grep Steam.app | grep -v Helper | grep -v grep | awk '{print $1}')
STEAM_BIN=$(ps -A | grep Steam.app | grep -v Helper | grep -v grep | awk '{print $4}')
STEAM_LOCATION=/Applications/Steam.app/Contents/MacOS/steam.sh
XBMC_LOCATION=/Applications/XBMC.app/Contents/MacOS/XBMC
# Is Steam running?
if [ $STEAM_PID ];
then
$STEAM_LOCATION steam://open/bigpicture #steam is brought to focus better this way # Does not work!
echo "Steam already running"
else
echo "Steam not running, launching"
# kill $XBMC_PID
$STEAM_LOCATION -bigpicture
fi
# Wait for Steam to exit
# while [ $STEAM_PID ];
# do
# echo "Steam running"
# sleep 1
# done
# $XBMC_LOCATION &
#
As you can see, I haven't changed that much in your code (only OSX default application location and a minor change of awk command regarding the PID(from $5 to $4))
Again thank you for this add-on, and I hope this will be of some help to others.