diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-05-07 20:20:43 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-05-07 20:20:43 +0200 |
commit | dafbbf21ae9763bd33a43151c290cd9f031d91a9 (patch) | |
tree | 9c4c5fd92386e46f7a006255a5647b641dacbc07 /debian/patches/302_nxagent_configurable-keystrokes.full.patch | |
parent | 995b70cdc7f65bbfd72afd75e86032307117a78b (diff) | |
download | nx-libs-dafbbf21ae9763bd33a43151c290cd9f031d91a9.tar.gz nx-libs-dafbbf21ae9763bd33a43151c290cd9f031d91a9.tar.bz2 nx-libs-dafbbf21ae9763bd33a43151c290cd9f031d91a9.zip |
For vanilla nxagent move keystrokes.cfg from /etc/nx to /etc/nxagent.
Diffstat (limited to 'debian/patches/302_nxagent_configurable-keystrokes.full.patch')
-rw-r--r-- | debian/patches/302_nxagent_configurable-keystrokes.full.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/patches/302_nxagent_configurable-keystrokes.full.patch b/debian/patches/302_nxagent_configurable-keystrokes.full.patch index 8fb34dfbe..e7a3e4a3f 100644 --- a/debian/patches/302_nxagent_configurable-keystrokes.full.patch +++ b/debian/patches/302_nxagent_configurable-keystrokes.full.patch @@ -4,7 +4,7 @@ Description: Make nxagent-specific keyboard bindings configurable table of keybindings. The default configuration is the same as the original one, to maintain compatibility. A user/administrator can either specify a command line parameter, environment variable or place a file - in ~/.nx/config/keystroke.cfg or /etc/nx/keystroke.cfg to reconfigure + in ~/.nx/config/keystroke.cfg or /etc/nxagent/keystroke.cfg to reconfigure these keybindings. . The configuration file format is XML, a dependency on libxml2 is added @@ -397,7 +397,7 @@ Description: Make nxagent-specific keyboard bindings configurable + * - '-keystrokefile' commandline parameter + * - $NXAGENT_KEYSTROKEFILE environment variable + * - $HOME/.nx/config/keystroke.cfg -+ * - /etc/nx/keystroke.cfg ++ * - /etc/nxagent/keystroke.cfg + * - hardcoded traditional NX default settings + */ +static void parse_keystroke_file(void) @@ -411,7 +411,7 @@ Description: Make nxagent-specific keyboard bindings configurable - { - *result = doSwitchDeferMode; + char *homefile = "/.nx/config/keystroke.cfg"; -+ char *etcfile = "/etc/nx/keystroke.cfg"; ++ char *etcfile = "/etc/nxagent/keystroke.cfg"; - break; + if (nxagentKeystrokeFile != NULL && access(nxagentKeystrokeFile, R_OK) == 0) @@ -916,7 +916,7 @@ Description: Make nxagent-specific keyboard bindings configurable +- 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/nx/keystroke.cfg ++- in /etc/nxagent/keystroke.cfg + +If none of those files is accessible, the default configuration is used which +is the same as the old, traditional nxagent keybindings. |