mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
807a0e4609
Previously, XKB_BINDIR was read inside a loop over the program arguments, so was only read if it had arguments that weren't matched by the first some number of checks.
16 lines
386 B
Diff
16 lines
386 B
Diff
diff --git a/os/utils.c b/os/utils.c
|
|
index ed7581e..6593455 100644
|
|
--- a/os/utils.c
|
|
+++ b/os/utils.c
|
|
@@ -658,6 +658,10 @@ ProcessCommandLine(int argc, char *argv[])
|
|
|
|
defaultKeyboardControl.autoRepeat = TRUE;
|
|
|
|
+ char *xkbBinDir = getenv("XKB_BINDIR");
|
|
+ if (xkbBinDir)
|
|
+ XkbBinDirectory = Xstrdup(xkbBinDir);
|
|
+
|
|
#ifdef NO_PART_NET
|
|
PartialNetwork = FALSE;
|
|
#else
|