Last active
August 16, 2018 20:33
-
-
Save jackpot51/fec041a797d0041a8eb87c7532c63ab0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Patch to use gdm3.css stylesheet | |
Index: gnome-initial-setup-3.28.0/data/initial-setup.json | |
=================================================================== | |
--- gnome-initial-setup-3.28.0.orig/data/initial-setup.json | |
+++ gnome-initial-setup-3.28.0/data/initial-setup.json | |
@@ -4,5 +4,6 @@ | |
"panel": { "left": [], | |
"center": [], | |
"right": ["a11yGreeter", "keyboard", "aggregateMenu"] | |
- } | |
+ }, | |
+ "stylesheetName": "gdm3.css" | |
} | |
# Patch to ignore password strength | |
Index: gnome-initial-setup-3.28.0/gnome-initial-setup/pages/password/gis-password-page.c | |
=================================================================== | |
--- gnome-initial-setup-3.28.0.orig/gnome-initial-setup/pages/password/gis-password-page.c | |
+++ gnome-initial-setup-3.28.0/gnome-initial-setup/pages/password/gis-password-page.c | |
@@ -59,7 +59,7 @@ page_validate (GisPasswordPage *page) | |
{ | |
GisPasswordPagePrivate *priv = gis_password_page_get_instance_private (page); | |
- return priv->valid_confirm && priv->valid_password; | |
+ return priv->valid_confirm; | |
} | |
static void | |
# Patch to validate usernames according to Debian rules | |
Index: gnome-initial-setup-3.28.0/gnome-initial-setup/pages/account/um-utils.c | |
=================================================================== | |
--- gnome-initial-setup-3.28.0.orig/gnome-initial-setup/pages/account/um-utils.c | |
+++ gnome-initial-setup-3.28.0/gnome-initial-setup/pages/account/um-utils.c | |
@@ -230,9 +230,8 @@ is_valid_username (const gchar *username | |
*/ | |
for (c = username; *c; c++) { | |
if (! ((*c >= 'a' && *c <= 'z') || | |
- (*c >= 'A' && *c <= 'Z') || | |
- (*c >= '0' && *c <= '9') || | |
- (*c == '_') || (*c == '.') || | |
+ (*c >= '0' && *c <= '9' && c != username) || | |
+ (*c == '_' && c != username) || | |
(*c == '-' && c != username))) | |
valid = FALSE; | |
} | |
@@ -247,11 +246,17 @@ is_valid_username (const gchar *username | |
else if (too_long) { | |
*tip = g_strdup_printf (_("The username is too long.")); | |
} | |
+ else if (username[0] == '_') { | |
+ *tip = g_strdup (_("The username cannot start with a “_”.")); | |
+ } | |
else if (username[0] == '-') { | |
*tip = g_strdup (_("The username cannot start with a “-”.")); | |
} | |
+ else if (username[0] >= '0' && username[0] <= '9') { | |
+ *tip = g_strdup (_("The username cannot start with a number.")); | |
+ } | |
else { | |
- *tip = g_strdup (_("The username should only consist of upper and lower case letters from a-z, digits and the following characters: . - _")); | |
+ *tip = g_strdup (_("The username should only consist of lower case letters from a-z, digits and the following characters: - _")); | |
} | |
} | |
else { | |
# Patch to fix spinning network icon after connect | |
Index: gnome-initial-setup-3.28.0/gnome-initial-setup/pages/network/gis-network-page.c | |
=================================================================== | |
--- gnome-initial-setup-3.28.0.orig/gnome-initial-setup/pages/network/gis-network-page.c | |
+++ gnome-initial-setup-3.28.0/gnome-initial-setup/pages/network/gis-network-page.c | |
@@ -208,10 +208,10 @@ add_access_point (GisNetworkPage *page, | |
case NM_DEVICE_STATE_CONFIG: | |
case NM_DEVICE_STATE_NEED_AUTH: | |
case NM_DEVICE_STATE_IP_CONFIG: | |
- case NM_DEVICE_STATE_SECONDARIES: | |
activated = FALSE; | |
activating = TRUE; | |
break; | |
+ case NM_DEVICE_STATE_SECONDARIES: | |
case NM_DEVICE_STATE_ACTIVATED: | |
activated = TRUE; | |
activating = FALSE; | |
# Patch to fix issues with timezone selection from the map | |
Index: gnome-initial-setup-3.28.0/gnome-initial-setup/pages/timezone/gis-timezone-page.c | |
=================================================================== | |
--- gnome-initial-setup-3.28.0.orig/gnome-initial-setup/pages/timezone/gis-timezone-page.c | |
+++ gnome-initial-setup-3.28.0/gnome-initial-setup/pages/timezone/gis-timezone-page.c | |
@@ -307,6 +307,9 @@ map_location_changed (CcTimezoneMap *m | |
{ | |
GisTimezonePagePrivate *priv = gis_timezone_page_get_instance_private (page); | |
+ gtk_widget_set_visible (priv->search_overlay, (location == NULL)); | |
+ gis_page_set_complete (GIS_PAGE (page), (location != NULL)); | |
+ | |
if (!priv->in_search) | |
gtk_entry_set_text (GTK_ENTRY (priv->search_entry), ""); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment