Customizing after PPA install

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
herg Offline
Senior Member
Posts: 106
Joined: Dec 2004
Reputation: 0
Location: Virginia USA
Post: #11
Maybe I'm doing something wrong, but I'm having several path issues using the current gutsy-svn PPA.

It's using /usr/share/xbmc/userdata/sources.xml, so it cannot create it due to permissions.
It can't create /usr/share/xbmc/userdata/Thumbnails or /usr/share/xbmc/userdata/Database.
I created symlinks to ~/.xbmc to get around these.

I use custom Lircmap.xml and Keymap.xml files, and updates overwrite them.
I put my custom files in ~/.xbmc and replaced the installed ones with symlinks, but I have to recreate the links after each update.

It also seems like I have to explicitly define XBMC_HOME for projectM to find its presets.

Here's the script I use after I update using the PPA. I still haven't had time to iron out all the wrinkles in my setup, so this is still a work in progress.
Code:
sudo ln -s /home/herg/.xbmc/userdata/sources.xml /usr/share/xbmc/userdata/sources.xml
sudo ln -s /home/herg/.xbmc/userdata/Thumbnails/ /usr/share/xbmc/userdata/Thumbnails
sudo ln -s /home/herg/.xbmc/userdata/Database/ /usr/share/xbmc/userdata/Database
sudo rm /usr/share/xbmc/userdata/Lircmap.xml
sudo ln -s /home/herg/.xbmc/userdata/Lircmap.xml /usr/share/xbmc/userdata/Lircmap.xml
sudo rm /usr/share/xbmc/userdata/Keymap.xml
sudo ln -s /home/herg/.xbmc/userdata/Keymap.xml /usr/share/xbmc/userdata/Keymap.xml
sudo rm -rf /usr/share/xbmc/visualisations/projectM/
sudo ln -s /home/herg/.xbmc/visualisations/projectM/ /usr/share/xbmc/visualisations/projectM
find quote
wattazoum Offline
Team-XBMC Linux Packager
Posts: 315
Joined: Mar 2008
Reputation: 0
Location: Antibes, France
Post: #12
How are you running xbmc . I believe you're trying to run xbmc.bin . If you run it you're not using the platform feature .

So try to launch /usr/bin/xbmc

Code:
#!/bin/sh

export XBMC_PLATFORM_MODE=1
exec /usr/share/xbmc/xbmc.bin -q $*

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]

Want a clean no-ads paste bin? http://pastebin.ubuntu.com/
find quote
herg Offline
Senior Member
Posts: 106
Joined: Dec 2004
Reputation: 0
Location: Virginia USA
Post: #13
Typically, I am using /usr/bin/xbmc via another script, but running it directly still shows the same behavior.

Here's a partial log. I cut it off after it tries to load sources.xml.
http://pastebin.com/m4942ad60
find quote
wattazoum Offline
Team-XBMC Linux Packager
Posts: 315
Joined: Mar 2008
Reputation: 0
Location: Antibes, France
Post: #14
Just checked on my system and I don't have a sources.xml in /usr/share/xbmc/userdata so it wouldn't try to load it .

So try to move your sources.xml to ~/.xbmc/userdata so that there is not sources.xml in /usr/share/xbmc/userdata anymore.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]

Want a clean no-ads paste bin? http://pastebin.ubuntu.com/
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,710
Joined: May 2004
Reputation: 12
Post: #15
XBMC tries to create everything in the install dir first, failing that it tries ~/.xbmc. You can ignore these "errors" as it is the intended function.

sources.xml doesn't exist until you actually add a source, upon which time xbmc will fail to create it in /usr/local/share/xbmc/userdata but succeed in ~/.xbmc/userdata.
find quote
herg Offline
Senior Member
Posts: 106
Joined: Dec 2004
Reputation: 0
Location: Virginia USA
Post: #16
I'm not sure what was hanging it up, but I deleted my old ~/.xbmc, removed the xbmc-common package, and deleted the /usr/share/xbmc directory. Starting from scratch, I reinstalled the xbmc package, and it created ~/.xbmc. The log also says it's trying to read /home/herg/.xbmc/userdata/sources.xml, with no mention of the /usr/share/xbmc/userdata/sources.xml.

Moral of the story: I should have cleaned up everything first rather than trying to install over old stuff.

Thanks, guys.
find quote
Post Reply