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 subscribed to gjs in Ubuntu.
https://bugs.launchpad.net/bugs/1975402

Title:
  GJS returns wrong session mode

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/1975402/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to