2010-11-02, 11:24
I'm running Dharma B4 Live installed to HDD.
My ideal setup is to have it automatically "logged" in as a restricted user (Kids) and then adults can logout of kids and login as Adults. If I don't use a Login Screen (so it auto logs in as the Master User), then I loose the nice Logout button under the power menu and it logs in as Master User not kids.
Going through many forums I found what should have been the solution. A short autoexec.py script. Mine is as follows. (Helps find in the debug log when it gets executed).
However, it doesn't get executed.
Finally found a post that said it needs to be in userdata now (not .xbmc/scripts/) and so now I have it in userdata.
Finally worked out that it ONLY gets executed after a user logs in. (So because it's just in userdata and not in a profiles userdata, it gets executed when Master User logs in).
According to a thread back in 07, http://forum.xbmc.org/showthread.php?tid=24854 there should be a location that gets executed on startup, and a spot that gets executed on login.
For the life of me, I can't find that spot that gets executed on startup.
I know it should be possible, because using my remote, I can skip logging in (actually, login as master user without prompting for pin) simply by having a button execute xbmc.ActiveWindow(MyVideos).
Does anyone have a simple way to automatically login a user profile (same one everytime) and still allowing an easy way to logout of that profile so that other profiles can be used?
(And I know this is a separate thing, but can we prevent the remote from loading (ActivateWindow) windows when the user isn't logged in? I'm sure people don't want Master User being logged in automatically.)
My ideal setup is to have it automatically "logged" in as a restricted user (Kids) and then adults can logout of kids and login as Adults. If I don't use a Login Screen (so it auto logs in as the Master User), then I loose the nice Logout button under the power menu and it logs in as Master User not kids.
Going through many forums I found what should have been the solution. A short autoexec.py script. Mine is as follows. (Helps find in the debug log when it gets executed).
Code:
import xbmc
print 'hello world'
xbmc.executebuiltin("XBMC.LoadProfile(Kids) ")
However, it doesn't get executed.
Finally found a post that said it needs to be in userdata now (not .xbmc/scripts/) and so now I have it in userdata.
Finally worked out that it ONLY gets executed after a user logs in. (So because it's just in userdata and not in a profiles userdata, it gets executed when Master User logs in).
According to a thread back in 07, http://forum.xbmc.org/showthread.php?tid=24854 there should be a location that gets executed on startup, and a spot that gets executed on login.
For the life of me, I can't find that spot that gets executed on startup.
I know it should be possible, because using my remote, I can skip logging in (actually, login as master user without prompting for pin) simply by having a button execute xbmc.ActiveWindow(MyVideos).
Does anyone have a simple way to automatically login a user profile (same one everytime) and still allowing an easy way to logout of that profile so that other profiles can be used?
(And I know this is a separate thing, but can we prevent the remote from loading (ActivateWindow) windows when the user isn't logged in? I'm sure people don't want Master User being logged in automatically.)