Auto-start XBMC on Apple TV boot

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...
Auto-start XBMC on Apple TV boot4.051
Share:
  • Facebook
  • Twitter
  • Digg
  • del.icio.us
  • FriendFeed
  • Reddit

6 Responses to “Auto-start XBMC on Apple TV boot”

  1. Rudi says:

    Tankxx for this helpfull tewak.
    But, how to disable autostart xbmc at a later point?

    Cheers,
    Rudi

  2. Cortez says:

    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.

  3. Cortez says:

    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

Leave a Reply