[gnome-initial-setup/wip/pwithnall/misc-fixes: 41/70] Don't run gnome-initial-setup for existing users




commit 84168c8d24b28645bb634aaffcaf78783eefeaee
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Wed Nov 1 15:33:34 2017 +0000

    Don't run gnome-initial-setup for existing users
    
    Upstream has "existing user" mode for new user accounts, but we don't
    want that in Endless, so skip it. In the future, we should be launching
    the tutorial right from here, once it's again available.
    
    This change was introduced to fix T3727, but got lost during the rebase
    to EOS 3.2. It's way simpler now because we don't have a tutorial now,
    but in the near future should probably be reworked to launch the new
    tutorial, once it's ready.
    
    https://phabricator.endlessm.com/T19802

 gnome-initial-setup/gnome-initial-setup.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/gnome-initial-setup/gnome-initial-setup.c b/gnome-initial-setup/gnome-initial-setup.c
index 3b22076c..b4f4008f 100644
--- a/gnome-initial-setup/gnome-initial-setup.c
+++ b/gnome-initial-setup/gnome-initial-setup.c
@@ -314,6 +314,15 @@ main (int argc, char *argv[])
     return EXIT_SUCCESS;
   }
 
+  /* Upstream has "existing user" mode for new user accounts, but we don't
+     want that in Endless, so skip it. In the future, we should be launching
+     the tutorial right from here, once it's again available. */
+  if (get_mode () == GIS_DRIVER_MODE_EXISTING_USER) {
+    gis_ensure_stamp_files (driver);
+    g_message ("Skipping gnome-initial-setup for existing user");
+    return EXIT_SUCCESS;
+  }
+
 #ifdef HAVE_CHEESE
   cheese_gtk_init (NULL, NULL);
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]