out_sider
Posts: 1
Joined: Sun Jan 12, 2014 6:14 pm

Advancedsettings.xml is overwritten on shutdown

Sun Jan 12, 2014 6:24 pm

I'm running raspberry pi with Raspbmc (XBMC 12.2) and I personally don't like the default time values for the step forward and back commands. As such I decided to edit the file advancedsettings.xml at ~/.xbmc/userdata/ folder.

Now, my issue is that most of the time I don't poweroff the raspberry pi through the shutdown option on the UI, this is because it's powered by my TV usb port, which results in the advancedsettings.xml content being "reset" and all my modifications are lost. How can I prevent that from happening? In fact I think all the content in the ~/.xbmc/userdata/ folder is overwritten because when I do

Code: Select all

ls -l
I got the modified data of all files the present day.

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Advancedsettings.xml is overwritten on shutdown

Fri Jan 17, 2014 10:34 am

I don't know xbmc, but if something gets overwritten when you restart the OS, then I would write a script or alias that copied all the modified files to backups as part of your shutdown routine. then, after the pi finishes rebooting, copy those backups back in place with your preferred settings. Or run a daemon that checks the status of that file and copies the backup into place if your preferred settings have been overwritten.

But it would be better if xbmc had some sort of flag that told it to use your preferred settings and not to reset itself, are you sure there isn't such a configuration option?
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

Return to “Advanced users”