Commit 7e55c36f authored by Mike Gabriel's avatar Mike Gabriel

Update 320_nxagent_configurable-keystrokes.full.patch: The keystrokes config…

Update 320_nxagent_configurable-keystrokes.full.patch: The keystrokes config file's default name now is keystrokes.cfg (plural).
parent a481c137
...@@ -5,6 +5,8 @@ nx-libs (2:3.5.0.24-0x2go1) UNRELEASED; urgency=low ...@@ -5,6 +5,8 @@ nx-libs (2:3.5.0.24-0x2go1) UNRELEASED; urgency=low
included into rolled tarball (by renaming *.patch to *.full.patch). included into rolled tarball (by renaming *.patch to *.full.patch).
* Debian lintian: * Debian lintian:
+ Fix: nx-libs source: not-binnmuable-all-depends-any x2goagent -> nxagent. + Fix: nx-libs source: not-binnmuable-all-depends-any x2goagent -> nxagent.
* Update 320_nxagent_configurable-keystrokes.full.patch: The keystrokes config
file's default name now is keystrokes.cfg (plural).
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 06 May 2014 18:34:36 +0200 -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Tue, 06 May 2014 18:34:36 +0200
......
...@@ -396,8 +396,8 @@ Description: Make nxagent-specific keyboard bindings configurable ...@@ -396,8 +396,8 @@ Description: Make nxagent-specific keyboard bindings configurable
+ * search order: + * search order:
+ * - '-keystrokefile' commandline parameter + * - '-keystrokefile' commandline parameter
+ * - $NXAGENT_KEYSTROKEFILE environment variable + * - $NXAGENT_KEYSTROKEFILE environment variable
+ * - $HOME/.nx/config/keystroke.cfg + * - $HOME/.nx/config/keystrokes.cfg
+ * - /etc/nxagent/keystroke.cfg + * - /etc/nxagent/keystrokes.cfg
+ * - hardcoded traditional NX default settings + * - hardcoded traditional NX default settings
+ */ + */
+static void parse_keystroke_file(void) +static void parse_keystroke_file(void)
...@@ -410,8 +410,8 @@ Description: Make nxagent-specific keyboard bindings configurable ...@@ -410,8 +410,8 @@ Description: Make nxagent-specific keyboard bindings configurable
- case XK_e: - case XK_e:
- { - {
- *result = doSwitchDeferMode; - *result = doSwitchDeferMode;
+ char *homefile = "/.nx/config/keystroke.cfg"; + char *homefile = "/.nx/config/keystrokes.cfg";
+ char *etcfile = "/etc/nxagent/keystroke.cfg"; + char *etcfile = "/etc/nxagent/keystrokes.cfg";
- break; - break;
+ if (nxagentKeystrokeFile != NULL && access(nxagentKeystrokeFile, R_OK) == 0) + if (nxagentKeystrokeFile != NULL && access(nxagentKeystrokeFile, R_OK) == 0)
...@@ -907,7 +907,7 @@ Description: Make nxagent-specific keyboard bindings configurable ...@@ -907,7 +907,7 @@ Description: Make nxagent-specific keyboard bindings configurable
+Configurable keybindings in nxagent +Configurable keybindings in nxagent
+ +
+Keybindings in the redistributed x2go version of nxagent can now be configured +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 +File location
+------------- +-------------
...@@ -915,8 +915,8 @@ Description: Make nxagent-specific keyboard bindings configurable ...@@ -915,8 +915,8 @@ Description: Make nxagent-specific keyboard bindings configurable
+nxagent searches for the configuration file in the following order: +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 '-keystrokefile' command line parameter
+- in the location given by the NXAGENT_KEYSTROKEFILE environment variable +- in the location given by the NXAGENT_KEYSTROKEFILE environment variable
+- in ~/.nx/config/keystroke.cfg +- in ~/.nx/config/keystrokes.cfg
+- in /etc/nxagent/keystroke.cfg +- in /etc/nxagent/keystrokes.cfg
+ +
+If none of those files is accessible, the default configuration is used which +If none of those files is accessible, the default configuration is used which
+is the same as the old, traditional nxagent keybindings. +is the same as the old, traditional nxagent keybindings.
...@@ -1018,7 +1018,7 @@ Description: Make nxagent-specific keyboard bindings configurable ...@@ -1018,7 +1018,7 @@ Description: Make nxagent-specific keyboard bindings configurable
+ +
return 0; return 0;
} }
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.h --- a/nx-X11/programs/Xserver/hw/nxagent/Args.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.h +++ b/nx-X11/programs/Xserver/hw/nxagent/Args.h
@@ -83,4 +83,6 @@ @@ -83,4 +83,6 @@
...@@ -1028,4 +1028,3 @@ Description: Make nxagent-specific keyboard bindings configurable ...@@ -1028,4 +1028,3 @@ Description: Make nxagent-specific keyboard bindings configurable
+extern char *nxagentKeystrokeFile; +extern char *nxagentKeystrokeFile;
+ +
#endif /* __Args_H__ */ #endif /* __Args_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment