[gnome-initial-setup/wip/wjt/libhandy-disable-portal] Tell libhandy not to use Settings portal




commit f086e3aeaa48e9aa2f8a36dab142362ad97b2046
Author: Will Thompson <wjt endlessos org>
Date:   Wed Mar 23 16:08:31 2022 +0000

    Tell libhandy not to use Settings portal
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/141

 gnome-initial-setup/gnome-initial-setup.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/gnome-initial-setup/gnome-initial-setup.c b/gnome-initial-setup/gnome-initial-setup.c
index 245a1334..fe9a88db 100644
--- a/gnome-initial-setup/gnome-initial-setup.c
+++ b/gnome-initial-setup/gnome-initial-setup.c
@@ -276,6 +276,14 @@ main (int argc, char *argv[])
 
   g_unsetenv ("GIO_USE_VFS");
 
+  /* By default, libhandy reads settings from the Settings portal, which causes
+   * the portal to be started, which causes gnome-keyring to be started. This
+   * interferes with our attempt below to manually start gnome-keyring and set
+   * the login keyring password to a well-known value, which we overwrite with
+   * the user's password once they choose one.
+   */
+  g_setenv ("HDY_DISABLE_PORTAL", "1", /* overwrite */ TRUE);
+
   context = g_option_context_new (_("— GNOME initial setup"));
   g_option_context_add_main_entries (context, entries, NULL);
 


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