Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save negativeExponent/a7c3181a2c736fecf76410989f412adc to your computer and use it in GitHub Desktop.
Save negativeExponent/a7c3181a2c736fecf76410989f412adc to your computer and use it in GitHub Desktop.
ly display manager login fix
diff --git a/src/login.c b/src/login.c
index 57219ae..bc1e904 100644
--- a/src/login.c
+++ b/src/login.c
@@ -227,7 +227,16 @@ void env_init(struct passwd* pwd)
setenv("SHELL", pwd->pw_shell, 1);
setenv("USER", pwd->pw_name, 1);
setenv("LOGNAME", pwd->pw_name, 1);
- setenv("LANG", lang, 1);
+ /* setenv("LANG", lang, 1); */
+
+ if (lang != NULL)
+ {
+ setenv("LANG", lang, 1);
+ }
+ else
+ {
+ setenv("LANG", "en_US.UTF-8", 1);
+ }
// Set PATH if specified in the configuration
if (strlen(config.path))
diff --git a/sub/argoat b/sub/argoat
index 76d1e23..0eb7afa 160000
--- a/sub/argoat
+++ b/sub/argoat
@@ -1 +1 @@
-Subproject commit 76d1e23b5e7b84b82c291a3120d9e57bb2d50424
+Subproject commit 0eb7afae7a001094c9166a8959e021375707522c
diff --git a/sub/dragonfail b/sub/dragonfail
index 0a2492c..95037f6 160000
--- a/sub/dragonfail
+++ b/sub/dragonfail
@@ -1 +1 @@
-Subproject commit 0a2492c6aab3ff64e182db894ce4d40b26799fbd
+Subproject commit 95037f6fc18553f98b15e2253b177d0d369b0056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment