Kodi Community Forum

Full Version: Profile Login/Logoff
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi Gade,

...

---Edit---
Where is the Profile Login/Logout button?
(2018-03-13, 22:46)Karellen Wrote: [ -> ]Where is the Profile Login/Logout button?

Is visible in power menu if more than one profile exist.
Thanks @skybird1980. That is what I thought, but it does not show up. I have 2 profiles (default + 1 additional). It shows up with the other skins I use- Estuary, Transparency and Aeon Nox, but not in Rapier.

Image

Image
That makes absolutely no sense to me.

I just created 2 test profiles and that made the button show up (id=7).

The visible conditions for the skins you mention are almost identical.
What can I send you?

---edit---
Settings.xml if that helps... https://pastebin.com/Py3XRMAe
Hi Karellen.

Does it work in Transparency for Kodi 18?

It uses the exact same visible condition as Rapier for that function.
Hi Gade

I don't have v18 installed on my main HTPC in the lounge room, which is where I experience the issue.

I'll install Rapier on my test machine and see if I can reproduce. Then I will try v18 Transparency! and see what happens.

I'll be in touch Wink
Actually, there's no need for that.

I can see that the code is the same for Kodi 17 and 18. So if you say it's working in Transparency for Kodi 17, it should work for Rapier as well.

I'll look further into this.
With Transparency!, I have to enable the button first by going into Settings>Skin Settings>Shutdown Menu

Is there a similar setting in Rapier? I am guessing not as it hasn't been mentioned..

---Edit---
I just tested this on my test machine. Fresh start. Only thing added is Rapier and Transparency! skins. I created a new profile while in Estuary. When I swap over to Rapier, there is no way for me to change profiles. Is there a setting I am overlooking somewhere? I have checked the Menus Settings and there is no option for Profile logoff.

I can zip my /roaming/Kodi folder and upload it for you.
DialogButtonMenu.xml
Working for me, but need remove some adds in code "System.Loggedon".
Real boolean condition is""System.IsLoggedon" but if you leave this condition need to be "!System.IsLoggedOn"
https://kodi.wiki/view/List_of_boolean_conditions

Image

remove visible condition and see if button "7" is visible.

Edit:
Gade
Seams to be wrong code in wiki System.IsLoggedOn is always "false" ...yours working ?!? Smile
Code:
                <control type="button" id="7">
                    <description>Log Off</description>
                    <include>ContextMenuBtn</include>
                    <label>$LOCALIZE[20126] $INFO[system.profilename]</label>
                    <onclick>Dialog.Close(all,true)</onclick>
                    <onclick>System.LogOff</onclick>
                    <visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
                </control>
@Angelinas

cpp:
<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>

I added your edits into DialogButtonMenu.xml and tested. It works. I now have the logoff option and am able to switch profiles.

Thank you!!
(2018-03-23, 18:24)Angelinas Wrote: [ -> ]Edit:
Gade
Seams to be wrong code in wiki System.IsLoggedOn is always "false" ...yours working ?!? Smile
Code:
                <control type="button" id="7">
                    <description>Log Off</description>
                    <include>ContextMenuBtn</include>
                    <label>$LOCALIZE[20126] $INFO[system.profilename]</label>
                    <onclick>Dialog.Close(all,true)</onclick>
                    <onclick>System.LogOff</onclick>
                    <visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
                </control>

Yup, System.LoggedOn works perfectly.

The same code is used by Estuary, Confluence, Aeon Nox and Transparency.
(2018-03-23, 23:58)Karellen Wrote: [ -> ]@Angelinas

cpp:
<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>

I added your edits into DialogButtonMenu.xml and tested. It works. I now have the logoff option and am able to switch profiles.

Thank you!!

I'm lost here.

Which edits did you add to get it working?

The code above is exactly similar to the one currently used by Rapier.
Only difference is System.Loggedon vs. System.LoggedOn

Estuary and Aeon Nox use System.Loggedon
Transparency uses System.LoggedOn
You could try this code instead, although it absolutely shouldn't make any difference at all. Just trying to rule anything out.

cpp:

<control type="button" id="7">
     <description>Log Off</description>
     <include>ContextMenuBtn</include>
     <label>$LOCALIZE[20126] $INFO[system.profilename]</label>
     <onclick>Dialog.Close(all,true)</onclick>
     <onclick>System.LogOff</onclick>
     <visible>System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)</visible>
     <visible>System.LoggedOn</visible>
</control>
Hi @Gade,

This is the original code snippet from "DialogButtonMenu.xml" which does not show the Login option
cpp:
<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>System.HasLoginScreen + System.Loggedon</visible>
</control>


I then replaced that portion with the following from the post by Angelinas, which then revealed the login option...
cpp:
<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>[System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)] + System.LoggedOn</visible>
</control>

I can now swap between the original xml file and the updated xml file, and the issue is repeatable. The original code won't show the login option, but the second code will show it.

I tried your code and it also reveals the login option. Again, this is repeatable if I swap between the original file and the file modified with the below code...
CPP:
<control type="button" id="7">
<description>Log Off</description>
<include>ContextMenuBtn</include>
<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
<onclick>Dialog.Close(all,true)</onclick>
<onclick>System.LogOff</onclick>
<visible>System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)</visible>
<visible>System.LoggedOn</visible>
</control>
Pages: 1 2