Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
I'm not using profiles, but the info is in profiles.xml. Why does Xbmc save a path for the "master" user? You cant move the folder easily. I know, I just tried and it took me a little while to figure why I had no sources and an empty library. Shouldn't the master user UserData folder always be in the same location relative to the executable?
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
of course, but shouldn't that be a manual change? why not default it to relative path?
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
that's the other thing... where does profiles.xml really belong? it's not really part of the "user data". maybe that should be moved to system as well? it tells the system where to find the userdata locations.
(and take a look at the stacking thread again. i was editing my post while you were posting.)
Posts: 26,215
Joined: Oct 2003
Reputation:
187
The trouble with that is it needs to be writeable I presume as when you create a new profile it needs to write where the location is.
So there's 2 separate issues:
1. We need a file (or something) telling XBMC where the masterusers' userdata folder is. This need not be writeable from XBMC.
2. We need a file within the masteruser's profile telling XBMC where the other user profiles are. This needs to be writeable from within XBMC.
Cheers,
Jonathan
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
#1 needs to be writable so that Xbmc can update the location of the master user's userdata folder if its not in the "assumed" place (ie, the userdata folder thats relative to the executable.) Or would it be up the master user to manually change this if they so choose to move it?
Posts: 26,215
Joined: Oct 2003
Reputation:
187
It would be up to the master user. Obviously XBMC will have a default (such as ~/.xbmc on linux and Q:\userdata on xbox) but it'll read it from this location file (if it exists) as appropriate.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
then it would stand to reason that the profile for the master user should be q:\userdata for windows as well, no? mine had the "real" path which is why it like being moved.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
2008-07-16, 14:59
(This post was last modified: 2008-07-16, 17:54 by kraqh3d.)
actually, code for a default keymap was already committed a few days ago. if a user keymap.xml is found, it "extends" the default so that you don't need a full copy of it, but just the bits you want changed.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
I think PictureIcons is used by the tuxbox client. Visualizations has the music visualizations. It's arguable whether or not they belong in UserData. They *could* be user specifc, but they need'nt be. It's probably better if they aren't. For visualisations, it may be possible to allow loading presets from both a default location and a userdata location for those few users who may need that.
I think AdvancedSettings.xml is user specific. It should be loaded from the user profile location.
Posts: 97
Joined: Oct 2007
Reputation:
0
Thanks for the detailed answer.
Also noticed this is in the Windows forum, another suggestion about the location of the UserData folder, maybe it would be better if you put it in,
C:\Documents and Settings\All Users\Application Data\XBMC\
Or else the whole point of profiles would kinda get lost, seeing every Windows XP user has his own (master) profile.
Posts: 7,172
Joined: Dec 2003
Reputation:
4
kraqh3d
Retired Developer
Posts: 7,172
when running in "-p" mode, i think profiles.xml is probably still in the "local" userdata folder, but all the profile definitions point to c:\documents and settings\userfoo\xbmc\userdata or something like that.