summaryrefslogtreecommitdiffstats
path: root/debian/patches/reenable-existing-user-mode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/reenable-existing-user-mode.patch')
-rw-r--r--debian/patches/reenable-existing-user-mode.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/reenable-existing-user-mode.patch b/debian/patches/reenable-existing-user-mode.patch
new file mode 100644
index 0000000..d149d39
--- /dev/null
+++ b/debian/patches/reenable-existing-user-mode.patch
@@ -0,0 +1,36 @@
+From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+Date: Thu, 17 Feb 2022 08:17:17 -0500
+Subject: Re-enable existing users mode since gnome-tour isn't in Debian
+
+This reverts commit 43f1870c "Disable existing-user mode".
+
+Forwarded: not-needed
+---
+ gnome-initial-setup/gnome-initial-setup.c | 14 --------------
+ 1 file changed, 14 deletions(-)
+
+diff --git a/gnome-initial-setup/gnome-initial-setup.c b/gnome-initial-setup/gnome-initial-setup.c
+index 113ded3..4d14fea 100644
+--- a/gnome-initial-setup/gnome-initial-setup.c
++++ b/gnome-initial-setup/gnome-initial-setup.c
+@@ -323,20 +323,6 @@ main (int argc, char *argv[])
+ adw_style_manager_set_color_scheme (adw_style_manager_get_default (),
+ ADW_COLOR_SCHEME_PREFER_LIGHT);
+
+- /* On first login, GNOME Shell offers to run a tour. If we also run Initial
+- * Setup, the two immovable, centred windows will sit atop one another.
+- * Until we have the ability to run Initial Setup in the "kiosk" mode, like
+- * it does in new-user mode, disable Initial Setup for existing users.
+- *
+- * https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/120#note_1019004
+- * https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/12
+- */
+- if (mode == GIS_DRIVER_MODE_EXISTING_USER) {
+- g_message ("Skipping gnome-initial-setup for existing user");
+- gis_ensure_stamp_files (driver);
+- exit (EXIT_SUCCESS);
+- }
+-
+ /* We only do this in existing-user mode, because if gdm launches us
+ * in new-user mode and we just exit, gdm's special g-i-s session
+ * never terminates. */