[Bug 1975402] Re: GJS returns wrong session mode

2022-05-23 Thread popov895
Now it's clear, thanks! It's strange that it's not in the gjs guide. Anyway, I've found that it's better to use the imports.ui.main.sessionMode.isPrimary/isLocked properties for this purpose. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is

[Bug 1975402] Re: GJS returns wrong session mode

2022-05-23 Thread TreviƱo
The value of imports.ui.main.sessionMode.currentMode (ubuntu) is not the login name, but the name of the ubuntu session. I'm sorry to say it but the gjs guide is wrong in assuming that's always the case as further sessions can be added. However, you can definitely check whether the used session

[Bug 1975402] Re: GJS returns wrong session mode

2022-05-23 Thread Sebastien Bacher
Thank you for your bug report. Do you have an example of extension impacted? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gjs in Ubuntu. https://bugs.launchpad.net/bugs/1975402 Title: GJS returns wrong session mode To manage