main: Use session mode property for welcome dialog
We only want to show the welcome dialog in the user session, not on the login screen or during initial setup. We currently achieve that by explicitly checking for those mode names, but there are other modes like gnome-classic where the dialog is equally un- helpful. Support those cases by adding a session mode property that determines whether the welcome dialog should be enabled, so that modes can opt in or out of the feature themselves. (Both the 'gdm' and 'initial-setup' modes are based on the 'restricted' mode, so this change does not affect them) https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4026 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1793>
This commit is contained in:

committed by
Marge Bot

parent
d5af1fa098
commit
e6be180df1
@ -19,6 +19,7 @@ const _modes = {
|
||||
themeResourceName: 'gnome-shell-theme.gresource',
|
||||
hasOverview: false,
|
||||
showCalendarEvents: false,
|
||||
showWelcomeDialog: false,
|
||||
allowSettings: false,
|
||||
allowExtensions: false,
|
||||
allowScreencast: false,
|
||||
@ -70,6 +71,7 @@ const _modes = {
|
||||
'user': {
|
||||
hasOverview: true,
|
||||
showCalendarEvents: true,
|
||||
showWelcomeDialog: true,
|
||||
allowSettings: true,
|
||||
allowExtensions: true,
|
||||
allowScreencast: true,
|
||||
|
Reference in New Issue
Block a user