Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
I have noticed that profile-specific favourites do not work in Kodi v18.
I am using the Milhouse LE test builds.
For the moment, I cannot test with OSMC v18 test builds due to other profile-related issues.
All profiles share the 'favourites.xml' file in userdata instead of using the file in userdata/profiles/<profile>.
It does not appear to be skin-related. I created a test profile, using all defaults and it sees the favourites created by other profiles.
This does not occur on v17.
It appears to be a Kodi core issue rather than LE/OSMC specific, although as stated above I have not verified on OSMC v18.
Is anyone else seeing this?
Any ideas?
Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
Hmmm, thanks for the info.
It seems to me that the issue is that Favourites are loaded from the wrong place in the first place, i.e. userdata.
This is the 'profile' directory if you have no profiles or if you autologin to Master.
But I would certainly expect Favourites to be reloaded [and from the correct place!] on profile switch.
Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
As an experiment, I knocked up a dummy service addon and installed it.
It starts when Kodi starts and does nothing except log all Notifications, using xbmc.Monitor.
I was expecting to see something when profile switching, but nothing at all got logged.
At the back of my mind was the thought that I could use this as a trigger to switch favourites.xml, depending on profile.
Clearly that won't work.
Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
2017-05-21, 18:10
(This post was last modified: 2017-05-21, 18:12 by agb2.)
What I had in mind was a hack :-}
Since I don't actually use the Master profile, except as a sort of 'admin' user, it has no media etc.
So the favourites.xml in userdata is empty.
I have manually copied the favourites from a profile which *has* got media, favourites etc. to userdata.
The hack would be to automatically copy profile/favourites.xml to userdata when a profile logs in.
I could tweak the dummy service I mentioned above to do this, but it will need to start on login, not when Kodi starts.
I suppose I would need to copy the xml back to the profile directory on logout as well.
Posts: 3,575
Joined: Mar 2011
Reputation:
194
Your hack won't work because as far as I can see favourites are only read from favourites.xml on startup. Hence my feature request.
Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
Ah. I hadn't fully grasped what your feature request was getting at :-}
You're right, the hack won't work.
I've confirmed that manually overwriting userdata/favourite.xml has no effect until Kodi is restarted.
Bah!
Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
I've added my tuppence-worth to your request.
Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
I'll keep an eye on that, thanks :-}
Posts: 121
Joined: Mar 2016
Reputation:
0
agb2
Senior Member
Posts: 121
2017-05-22, 20:40
(This post was last modified: 2017-05-22, 20:57 by agb2.)
Hmm. That's not the behaviour I see.
But the difference may well be that I autologon to Master, which I use as a sort of 'admin' account only.
You're right about the special:// business - got over-excited when I saw that :-}
I will try setting autologon to a different profile, just to confirm what you said.
Cheers.
<edit>
Yup, confirmed.
Posts: 3,575
Joined: Mar 2011
Reputation:
194
If you log on to the Masterprofile then special://profile and special://masterprofile are the same place. So yes, you'll always load favs from userdata that way. If you set autologin to 'last profile' it's easy to see.