Inaccuracy in the documentation of the session mode
The documentation says that "when a user is logged in and using their desktop the Shell is in the user
mode", which is incorrect, because the value of imports.ui.main.sessionMode.currentMode is the name of the session, which may be different from user
(in Ubuntu it's ubuntu
).
See https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/1975402