summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-02-15 14:07:29 +0100
committerBastien Nocera <hadess@hadess.net>2021-02-15 14:09:02 +0100
commit642d03040048e9373040b7cf1cff35bc5356bdba (patch)
tree0a186dc3a54862fe086b8c0664533c9b88ae5b1d
parent09602ae2aee963710bd1cbbf7102fc1632d4e0df (diff)
downloadgnome-shell-wip/hadess/liveuser-no-tour.tar.gz
main: Don't show welcome dialogue for Live CD userswip/hadess/liveuser-no-tour
Fedora uses a 'liveuser' user for its "Live CD" Workstation installation. Don't show a welcome tour, otherwise we'd show it every start. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3729
-rw-r--r--js/ui/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/ui/main.js b/js/ui/main.js
index 94c43dcce..791d0bee3 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -304,7 +304,8 @@ function _initializeUI() {
notify(_('Logged in as a privileged user'),
_('Running a session as a privileged user should be avoided for security reasons. If possible, you should log in as a normal user.'));
} else if (sessionMode.currentMode !== 'gdm' &&
- sessionMode.currentMode !== 'initial-setup') {
+ sessionMode.currentMode !== 'initial-setup' &&
+ GLib.get_user_name() !== 'liveuser') {
_handleShowWelcomeScreen();
}