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
7c32938a
Commit
7c32938a
authored
Feb 21, 2018
by
Simon Matter
Committed by
Mike Gabriel
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: Add -version cmdline option.
Fixes ArcticaProject/nx-libs#653.
parent
75176042
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+11
-0
Args.h
nx-X11/programs/Xserver/hw/nxagent/Args.h
+2
-0
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+1
-4
nxagent.1
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
+3
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
7c32938a
...
...
@@ -336,6 +336,12 @@ int ddxProcessArgument(int argc, char *argv[], int i)
return
0
;
}
if
(
!
strcmp
(
argv
[
i
],
"-version"
))
{
nxagentShowVersionInfo
();
exit
(
0
);
}
/*
* This had to be '-options' since the beginning
* but was '-option' by mistake. Now we have to
...
...
@@ -2112,6 +2118,7 @@ void ddxUseMsg()
ErrorF
(
"-R enable rootless mode
\n
"
);
ErrorF
(
"-S enable shadow mode
\n
"
);
ErrorF
(
"-B enable proxy binding mode
\n
"
);
ErrorF
(
"-version show version information and exit
\n
"
);
}
static
int
nxagentGetDialogName
()
...
...
@@ -2609,3 +2616,7 @@ void nxagentSetCoalescence()
nxagentChangeOption
(
DisplayCoalescence
,
timeout
);
}
void
nxagentShowVersionInfo
(
void
)
{
ErrorF
(
"NXAGENT - Version "
NX_VERSION_CURRENT_STRING
"
\n
"
);
}
nx-X11/programs/Xserver/hw/nxagent/Args.h
View file @
7c32938a
...
...
@@ -96,6 +96,8 @@ void nxagentSetBufferSize(void);
void
nxagentSetScheduler
(
void
);
void
nxagentSetCoalescence
(
void
);
void
nxagentShowVersionInfo
(
void
);
extern
int
nxagentUserDefinedFontPath
;
extern
int
nxagentRemoteMajor
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
7c32938a
...
...
@@ -85,9 +85,6 @@ is" without express or implied warranty.
#undef DEBUG
#undef DUMP
#define NXAGENT_VERSION NX_VERSION_CURRENT
#define NXAGENT_VERSION_STRING NX_VERSION_CURRENT_STRING
/*
* ProcVector array defined in tables.c.
*/
...
...
@@ -234,7 +231,7 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
if
(
serverGeneration
<=
1
)
{
fprintf
(
stderr
,
"
\n
NXAGENT - Version "
NX
AGENT_VERSION
_STRING
"
\n\n
"
);
fprintf
(
stderr
,
"
\n
NXAGENT - Version "
NX
_VERSION_CURRENT
_STRING
"
\n\n
"
);
fprintf
(
stderr
,
"Copyright (c) 2001, 2011 NoMachine (http://www.nomachine.com)
\n
"
);
fprintf
(
stderr
,
"Copyright (c) 2008-2014 Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
\n
"
);
fprintf
(
stderr
,
"Copyright (c) 2011-2016 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
\n
"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
View file @
7c32938a
...
...
@@ -449,6 +449,9 @@ enable shadow mode
.B \-B
enable proxy binding mode
.TP 8
.B \-version
show version information and exit
.TP 8
.B \-options \fIfilename\fP
path to an options file containing nx/nx options (see below).
.PP
...
...
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