SHA256
1
0
forked from pool/gdm
gdm/gdm-disable-gnome-initial-setup.patch
Dominique Leuenberger f4387cc926 Accepting request 1073111 from GNOME:Next
Subbing RC in case upstream forget to do a stable bump
- Update to version 44.rc:
  + Lots of code clean ups.
  + Fix detection of virt on efi setups.
  + Fix btmp accounting on failed logins.
  + Ensure pam_close_session is called even if worker is killed.
  + Updated translations.
- Drop gdm-switch-user-tty7.patch: fixed upstream.
- Refresh patches with Quilt.
- Rebase gdm-xauthlocalhostname.patch due to code clean up commit:
  88d79fe24cda8623a4b460c0aa9628178c26f745.

OBS-URL: https://build.opensuse.org/request/show/1073111
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gdm?expand=0&rev=515
2023-03-20 12:50:07 +00:00

30 lines
843 B
Diff

--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -1653,6 +1653,9 @@ wants_initial_setup (GdmDisplay *self)
gboolean enabled = FALSE;
gboolean forced = FALSE;
+ g_autofree gchar *release_name = NULL;
+ release_name = g_get_os_info (G_OS_INFO_KEY_NAME);
+
priv = gdm_display_get_instance_private (self);
if (already_done_initial_setup_on_this_boot ()) {
@@ -1689,6 +1692,16 @@ wants_initial_setup (GdmDisplay *self)
return FALSE;
}
+ if (release_name == NULL) {
+ g_error ("GdmDisplay: Failed to parse os-release");
+ return enabled;
+ }
+
+ if (g_str_has_prefix (release_name, "SLE")) {
+ g_debug ("GdmDisplay: Disable gnome-initial-setup on SLE");
+ return FALSE;
+ }
+
return enabled;
}