Hello there
I'm building a software and the install needs to find whether xbmc is configured to use the user folder or the main xbmc folder
I can't just look for if some files are present, after all, one can has used one mode and then another, leaving files in folders that are not used
And I can't find infos in the wikki
So is this information stored somewhere ?
Thanks
Determine userdata location?
Imaginos
xbmcstuff.com admin Joined: Nov 2008 Reputation: 11 Location: Calvados, France |
(This post was last modified: 2009-05-19 12:04 by Imaginos.)
|
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2009-05-19 12:37
Post: #2
g_application.PlatformDirectoriesEnabled()
that being said; userdata is always available as special://userdata/ 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.
(This post was last modified: 2009-05-19 12:46 by spiff.)
|
| find quote |
Imaginos
xbmcstuff.com admin Joined: Nov 2008 Reputation: 11 Location: Calvados, France |
2009-05-25 01:24
Post: #3
well special://userdata/ is accessible by xbmc
Should I search through the hd to find xbmc.log to gather the datas ? |
| find quote |
althekiller
Team-XBMC Developer Joined: May 2004 Reputation: 12 |
2009-05-25 02:50
Post: #4
Imaginos Wrote:Should I search through the hd to find xbmc.log to gather the datas ? That would be painfully slow. Why not just require the user specify their userdata path? Howto post your problem in a useful manner. #xbmc-linux on FreeNode XBMC online-manual, FAQ, search, forum rules, how to submit a bugreport. |
| find quote |
Imaginos
xbmcstuff.com admin Joined: Nov 2008 Reputation: 11 Location: Calvados, France |
2009-05-25 15:40
Post: #5
I prefer to trust files and datas than end user
![]() Some don't understand the meaning of some choices... Anyway, I decided to use the registry to get the windows userprofile, then I can find the xbmc.log, wich gives me all I need (masterprofile, home, exe folder...) thus I can store them in a xml file. Huummm is there another possible location for the xbmc.log ? |
| find quote |
BrokenCodes
Member Posts: 95 Joined: May 2009 Reputation: 2 |
2009-05-25 16:05
Post: #6
%userprofile%\XBMC\userdata
|
| find quote |
Imaginos
xbmcstuff.com admin Joined: Nov 2008 Reputation: 11 Location: Calvados, France |
2009-05-25 17:28
Post: #7
you mean xbmc.log can be in %userprofile%\XBMC\userdata AND/OR %userprofile%\XBMC ?
|
| find quote |
BrokenCodes
Member Posts: 95 Joined: May 2009 Reputation: 2 |
2009-05-25 20:32
Post: #8
heh lol? No, I stated what I meant.
|
| find quote |


Search
Help