Kodi Community Forum
How to Load Profile from Custom Menu? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166)
+---- Thread: How to Load Profile from Custom Menu? (/showthread.php?tid=308964)



How to Load Profile from Custom Menu? - DataBass - 2017-03-07

I recently setup a 2nd profile on Kodi & I'm trying to setup a custom menu to be able to load profile after clicking it. I came across the list of kodi functions that can be found on wiki, the function that I am trying to use is:

LoadProfile(profilename,[prompt])

Quote:Load the specified profile. If prompt is not specified, and a password would be required for the requested profile, this command will silently fail. If promp' is specified and a password is required, a password dialog will be shown.

When I use the following Change Action "LoadProfile(profilename,[prompt])" it does absolutely nothing, I'm unsure how to specify the prompt. Can someone please help me out, thanks in advance.


RE: How to Load Profile from Custom Menu? - Uatschitchun - 2017-03-08

Options in [] are meant to be optional, so either use
LoadProfile(profilename,prompt) or
LoadProfile(profilename)