Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
dafbbf21
Commit
dafbbf21
authored
May 07, 2013
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For vanilla nxagent move keystrokes.cfg from /etc/nx to /etc/nxagent.
parent
995b70cd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
Makefile.nx-libs
debian/Makefile.nx-libs
+1
-1
changelog
debian/changelog
+1
-0
302_nxagent_configurable-keystrokes.full.patch
...an/patches/302_nxagent_configurable-keystrokes.full.patch
+4
-4
No files found.
debian/Makefile.nx-libs
View file @
dafbbf21
...
@@ -7,7 +7,7 @@ COPY_SYMLINK=cp -a
...
@@ -7,7 +7,7 @@ COPY_SYMLINK=cp -a
RM_FILE
=
rm
-f
RM_FILE
=
rm
-f
RM_DIR
=
rmdir
-p
--ignore-fail-on-non-empty
RM_DIR
=
rmdir
-p
--ignore-fail-on-non-empty
ETCDIR_NX
?=
/etc/nx
ETCDIR_NX
?=
/etc/nx
agent
ETCDIR_X2GO
?=
/etc/x2go
ETCDIR_X2GO
?=
/etc/x2go
PREFIX
?=
/usr/local
PREFIX
?=
/usr/local
BINDIR
=
$(PREFIX)
/bin
BINDIR
=
$(PREFIX)
/bin
...
...
debian/changelog
View file @
dafbbf21
...
@@ -3,6 +3,7 @@ nx-libs (2:3.5.0.21-0) UNRELEASED; urgency=low
...
@@ -3,6 +3,7 @@ nx-libs (2:3.5.0.21-0) UNRELEASED; urgency=low
* Provide a default keystrokes.cfg in /etc/nx (for nxagent) and /etc/x2go
* Provide a default keystrokes.cfg in /etc/nx (for nxagent) and /etc/x2go
(for x2goagent). (Fixes: #199).
(for x2goagent). (Fixes: #199).
* Set NXAGENT_KEYSTROKEFILE to /etc/x2go/keystrokes.cfg for wrapper x2goagent.
* Set NXAGENT_KEYSTROKEFILE to /etc/x2go/keystrokes.cfg for wrapper x2goagent.
* For vanilla nxagent move keystrokes.cfg from /etc/nx to /etc/nxagent.
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Thu, 28 Mar 2013 21:07:42 +0100
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Thu, 28 Mar 2013 21:07:42 +0100
...
...
debian/patches/302_nxagent_configurable-keystrokes.full.patch
View file @
dafbbf21
...
@@ -4,7 +4,7 @@ Description: Make nxagent-specific keyboard bindings configurable
...
@@ -4,7 +4,7 @@ Description: Make nxagent-specific keyboard bindings configurable
table of keybindings. The default configuration is the same as the
table of keybindings. The default configuration is the same as the
original one, to maintain compatibility. A user/administrator can either
original one, to maintain compatibility. A user/administrator can either
specify a command line parameter, environment variable or place a file
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/nx
agent
/keystroke.cfg to reconfigure
these keybindings.
these keybindings.
.
.
The configuration file format is XML, a dependency on libxml2 is added
The configuration file format is XML, a dependency on libxml2 is added
...
@@ -397,7 +397,7 @@ Description: Make nxagent-specific keyboard bindings configurable
...
@@ -397,7 +397,7 @@ Description: Make nxagent-specific keyboard bindings configurable
+ * - '-keystrokefile' commandline parameter
+ * - '-keystrokefile' commandline parameter
+ * - $NXAGENT_KEYSTROKEFILE environment variable
+ * - $NXAGENT_KEYSTROKEFILE environment variable
+ * - $HOME/.nx/config/keystroke.cfg
+ * - $HOME/.nx/config/keystroke.cfg
+ * - /etc/nx/keystroke.cfg
+ * - /etc/nx
agent
/keystroke.cfg
+ * - hardcoded traditional NX default settings
+ * - hardcoded traditional NX default settings
+ */
+ */
+static void parse_keystroke_file(void)
+static void parse_keystroke_file(void)
...
@@ -411,7 +411,7 @@ Description: Make nxagent-specific keyboard bindings configurable
...
@@ -411,7 +411,7 @@ Description: Make nxagent-specific keyboard bindings configurable
- {
- {
- *result = doSwitchDeferMode;
- *result = doSwitchDeferMode;
+ char *homefile = "/.nx/config/keystroke.cfg";
+ char *homefile = "/.nx/config/keystroke.cfg";
+ char *etcfile = "/etc/nx/keystroke.cfg";
+ char *etcfile = "/etc/nx
agent
/keystroke.cfg";
- break;
- break;
+ if (nxagentKeystrokeFile != NULL && access(nxagentKeystrokeFile, R_OK) == 0)
+ if (nxagentKeystrokeFile != NULL && access(nxagentKeystrokeFile, R_OK) == 0)
...
@@ -916,7 +916,7 @@ Description: Make nxagent-specific keyboard bindings configurable
...
@@ -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 '-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/keystroke.cfg
+- in /etc/nx/keystroke.cfg
+- in /etc/nx
agent
/keystroke.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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment