Update: There is now a much easier way to auto-start XBMC on Apple TV boot.
See details here.
I’ll leave the below post here for posterity…
Here’s how to have XBMC auto-start when your Apple TV boots.
Create a text file with the following content:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.teamxbmc.xbmc</string> <key>OnDemand</key> <false/> <key>ProgramArguments</key> <array> <string>/Applications/XBMC.app/Contents/MacOS/XBMC</string> <string>-fs</string> </array> </dict> </plist>
Save it on your Desktop, as com.teamxbmc.xbmc.plist
Create another text file with the following content:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.teamxbmc.xbmchelper</string> <key>OnDemand</key> <false/> <key>ProgramArguments</key> <array> <string>/Applications/MultiFinder.app/Contents/Resources/xbmchelper</string> <string>-v</string> <string>-u</string> </array> </dict> </plist>
Save it on your Desktop, as com.teamxbmc.xbmchelper.plist
Install both files to your AppleTV using Terminal.app:
scp ~/Desktop/com.teamxbmc.xbmc*.plist frontrow@your_appletv_ip_address:. ssh frontrow@your_appletv_ip_address sudo mv com.teamxbmc.xbmc*.plist /Library/LaunchAgents/ sudo chown root:wheel /Library/LaunchAgents/com.teamxbmc.xbmc*.plist sudo chmod 644 /Library/LaunchAgents/com.teamxbmc.xbmc*.plist launchctl load /Library/LaunchAgents/com.teamxbmc.xbmc.plist launchctl load /Library/LaunchAgents/com.teamxbmc.xbmchelper.plist
That’s it. You can then delete the two files left on your Desktop.
GD Star Rating
loading...
loading...
Tankxx for this helpfull tewak.
But, how to disable autostart xbmc at a later point?
Cheers,
Rudi
ssh frontrow@your_appletv_ip_address
launchctl unload /Library/LaunchAgents/com.teamxbmc.xbmc.plist
launchctl unload /Library/LaunchAgents/com.teamxbmc.xbmchelper.plist
i.e. 'unload' instead of 'load'
Update: those instructions won’t work to uninstall… See the new ones I provided here:
http://www.pommepause.com/blog/2009/07/auto-start-xbmc-on-apple-tv-boot/#comment-161
Hi. Followed the steps provided. Worked like a charm to get XBMC to launch on boot. However, I cannot close xbmc and return to the Finder it just freezes XBMC. I cannot uninstall using the info provided. Any help would be useful. Thanks.
You won’t be able to go back to the Finder using this. If you Quit XBMC, the LaunchAgent will just restart it.
The instructions in my comment above, i.e. typing the same commands you did to install this, but substituting ‘load’ with ‘unload’ will completely remove the auto-load.
If it doesn’t, you typed something wrong.
Update: Seems I was wrong!… See the new instructions I provided here to uninstall:
http://www.pommepause.com/blog/2009/07/auto-start-xbmc-on-apple-tv-boot/#comment-161
Uninstalled via SFTP. Found the 4 files to remove and deleted them.
Ah, indeed, my bad! launchctl unload is not enough. You’ll need to remove or move the plist files out of /Library/LaunchAgents/:
So to uninstall:
ssh frontrow@your_appletv_ip_address
launchctl unload /Library/LaunchAgents/com.teamxbmc.xbmc.plist
launchctl unload /Library/LaunchAgents/com.teamxbmc.xbmchelper.plist
sudo mv /Library/LaunchAgents/com.teamxbmc.xbmc.plist .
sudo mv /Library/LaunchAgents/com.teamxbmc.xbmchelper.plist .
sudo reboot