Public bug reported: As stated in the documentation (https://gjs.guide/extensions/topics/session-modes.html#example-usage), when a user is logged in, the Shell is in the `user` mode. I checked it on Fedora 36, and that's how it works.
But in Ubuntu, for some reason, `imports.ui.main.currentMode` returns the login name of the current user instead of the `user` constant, which breaks extensions that use it. --- ProblemType: Bug Architecture: amd64 CurrentDesktop: ubuntu:GNOME DistroRelease: Ubuntu 22.04 Package: gjs 1.72.0-3 PackageArchitecture: amd64 ProcVersionSignature: Ubuntu 5.15.0-30.31-generic 5.15.30 RelatedPackageVersions: mutter-common 42.0-3ubuntu2 Tags: jammy Uname: Linux 5.15.0-30-generic x86_64 ** Affects: gjs (Ubuntu) Importance: Undecided Status: New -- 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