net-misc/nx-X11: Bump
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2335 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
32
net-misc/nx-X11/files/90_set_X0-config_path.dpatch
Normal file
32
net-misc/nx-X11/files/90_set_X0-config_path.dpatch
Normal file
@@ -0,0 +1,32 @@
|
||||
--- a/nxagent/programs/Xserver/hw/nxagent/Keyboard.c
|
||||
+++ b/nxagent/programs/Xserver/hw/nxagent/Keyboard.c
|
||||
@@ -136,7 +136,7 @@
|
||||
#define XKB_ALTERNATE_BASE_DIRECTORY "/usr/X11R6/lib/X11/xkb"
|
||||
#endif
|
||||
#ifndef XKB_CONFIG_FILE
|
||||
-#define XKB_CONFIG_FILE "X0-config.keyboard"
|
||||
+#define XKB_CONFIG_FILE "/etc/nxagent/nxagent.keyboard"
|
||||
#endif
|
||||
#ifndef XKB_DFLT_RULES_FILE
|
||||
#define XKB_DFLT_RULES_FILE "xfree86"
|
||||
@@ -978,8 +978,7 @@
|
||||
|
||||
XkbGetControls(nxagentDisplay, XkbAllControlsMask, xkb);
|
||||
|
||||
- nxagentXkbConfigFilePathSize = strlen(XkbBaseDirectory) +
|
||||
- strlen(XKB_CONFIG_FILE) + 1;
|
||||
+ nxagentXkbConfigFilePathSize = strlen(XKB_CONFIG_FILE);
|
||||
|
||||
nxagentXkbConfigFilePath = malloc((nxagentXkbConfigFilePathSize + 1) * sizeof(char));
|
||||
|
||||
@@ -988,9 +987,7 @@
|
||||
FatalError("nxagentKeyboardProc: malloc failed.");
|
||||
}
|
||||
|
||||
- strcpy(nxagentXkbConfigFilePath, XkbBaseDirectory);
|
||||
- strcat(nxagentXkbConfigFilePath, "/");
|
||||
- strcat(nxagentXkbConfigFilePath, XKB_CONFIG_FILE);
|
||||
+ strcpy(nxagentXkbConfigFilePath, XKB_CONFIG_FILE);
|
||||
|
||||
#ifdef TEST
|
||||
fprintf(stderr, "nxagentKeyboardProc: nxagentXkbConfigFilePath [%s].\n",
|
||||
Reference in New Issue
Block a user