2020-06-14 13:18:30 +01:00
|
|
|
From b5665ef8b9266c662c3a137df1ef1721cdff346e Mon Sep 17 00:00:00 2001
|
2020-01-26 13:56:41 +00:00
|
|
|
From: Imuli <i@imu.li>
|
|
|
|
Date: Wed, 19 Oct 2016 08:46:47 -0400
|
2020-04-30 00:03:18 +01:00
|
|
|
Subject: [PATCH 10/18] localectl: use /etc/X11/xkb for list-x11-*
|
2020-01-26 13:56:41 +00:00
|
|
|
|
|
|
|
NixOS has an option to link the xkb data files to /etc/X11, but not to
|
|
|
|
/usr/share/X11.
|
|
|
|
---
|
|
|
|
src/locale/localectl.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/locale/localectl.c b/src/locale/localectl.c
|
2020-04-30 00:03:18 +01:00
|
|
|
index 6f2d37d222..7aa2310d48 100644
|
2020-01-26 13:56:41 +00:00
|
|
|
--- a/src/locale/localectl.c
|
|
|
|
+++ b/src/locale/localectl.c
|
2020-04-30 00:03:18 +01:00
|
|
|
@@ -286,7 +286,7 @@ static int list_x11_keymaps(int argc, char **argv, void *userdata) {
|
2020-01-26 13:56:41 +00:00
|
|
|
} state = NONE, look_for;
|
|
|
|
int r;
|
|
|
|
|
|
|
|
- f = fopen("/usr/share/X11/xkb/rules/base.lst", "re");
|
|
|
|
+ f = fopen("/etc/X11/xkb/rules/base.lst", "re");
|
|
|
|
if (!f)
|
|
|
|
return log_error_errno(errno, "Failed to open keyboard mapping list. %m");
|
|
|
|
|
|
|
|
--
|
2020-04-30 00:03:18 +01:00
|
|
|
2.26.2
|
2020-01-26 13:56:41 +00:00
|
|
|
|