aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/320_nxagent_configurable-keystrokes.full.patch
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-05-07 09:38:04 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-05-07 09:38:04 +0200
commit7e55c36f4b5d287a3fb0c592b9a52692670f9206 (patch)
treec9e0bd85e8e7c51767a4b51a91565cb7fa72848b /debian/patches/320_nxagent_configurable-keystrokes.full.patch
parenta481c137acb4423d0620792932adcd1bc014f205 (diff)
downloadnx-libs-7e55c36f4b5d287a3fb0c592b9a52692670f9206.tar.gz
nx-libs-7e55c36f4b5d287a3fb0c592b9a52692670f9206.tar.bz2
nx-libs-7e55c36f4b5d287a3fb0c592b9a52692670f9206.zip
Update 320_nxagent_configurable-keystrokes.full.patch: The keystrokes config file's default name now is keystrokes.cfg (plural).
Diffstat (limited to 'debian/patches/320_nxagent_configurable-keystrokes.full.patch')
-rw-r--r--debian/patches/320_nxagent_configurable-keystrokes.full.patch17
1 files changed, 8 insertions, 9 deletions
diff --git a/debian/patches/320_nxagent_configurable-keystrokes.full.patch b/debian/patches/320_nxagent_configurable-keystrokes.full.patch
index e7a3e4a3f..1f6e32832 100644
--- a/debian/patches/320_nxagent_configurable-keystrokes.full.patch
+++ b/debian/patches/320_nxagent_configurable-keystrokes.full.patch
@@ -396,8 +396,8 @@ Description: Make nxagent-specific keyboard bindings configurable
+ * search order:
+ * - '-keystrokefile' commandline parameter
+ * - $NXAGENT_KEYSTROKEFILE environment variable
-+ * - $HOME/.nx/config/keystroke.cfg
-+ * - /etc/nxagent/keystroke.cfg
++ * - $HOME/.nx/config/keystrokes.cfg
++ * - /etc/nxagent/keystrokes.cfg
+ * - hardcoded traditional NX default settings
+ */
+static void parse_keystroke_file(void)
@@ -410,8 +410,8 @@ Description: Make nxagent-specific keyboard bindings configurable
- case XK_e:
- {
- *result = doSwitchDeferMode;
-+ char *homefile = "/.nx/config/keystroke.cfg";
-+ char *etcfile = "/etc/nxagent/keystroke.cfg";
++ char *homefile = "/.nx/config/keystrokes.cfg";
++ char *etcfile = "/etc/nxagent/keystrokes.cfg";
- break;
+ if (nxagentKeystrokeFile != NULL && access(nxagentKeystrokeFile, R_OK) == 0)
@@ -907,7 +907,7 @@ Description: Make nxagent-specific keyboard bindings configurable
+Configurable keybindings in nxagent
+
+Keybindings in the redistributed x2go version of nxagent can now be configured
-+by the user. This is done via a configuration file.
++by the user. This is done via a configuration file.
+
+File location
+-------------
@@ -915,8 +915,8 @@ Description: Make nxagent-specific keyboard bindings configurable
+nxagent searches for the configuration file in the following order:
+- in the location given by the '-keystrokefile' command line parameter
+- in the location given by the NXAGENT_KEYSTROKEFILE environment variable
-+- in ~/.nx/config/keystroke.cfg
-+- in /etc/nxagent/keystroke.cfg
++- in ~/.nx/config/keystrokes.cfg
++- in /etc/nxagent/keystrokes.cfg
+
+If none of those files is accessible, the default configuration is used which
+is the same as the old, traditional nxagent keybindings.
@@ -1018,7 +1018,7 @@ Description: Make nxagent-specific keyboard bindings configurable
+
return 0;
}
-
+
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.h
@@ -83,4 +83,6 @@
@@ -1028,4 +1028,3 @@ Description: Make nxagent-specific keyboard bindings configurable
+extern char *nxagentKeystrokeFile;
+
#endif /* __Args_H__ */
-