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
37383646
Commit
37383646
authored
Apr 14, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call checkX2goAgent much earlier (in ddxProcessArgument) and adapt…
Call checkX2goAgent much earlier (in ddxProcessArgument) and adapt NXAGENTWINDOWNAMELENGTH to its result.
parent
4d6bae08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+14
-1
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+1
-6
Init.h
nx-X11/programs/Xserver/hw/nxagent/Init.h
+1
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
37383646
...
...
@@ -56,6 +56,7 @@ is" without express or implied warranty.
#include "servermd.h"
#include "opaque.h"
#include "Init.h"
#include "Agent.h"
#include "Display.h"
#include "Args.h"
...
...
@@ -189,6 +190,11 @@ int ddxProcessArgument(int argc, char *argv[], int i)
nxagentProgName
=
argv
[
0
];
/*
* Check if we running as X2Go Agent
*/
checkX2goAgent
();
static
Bool
resetOptions
=
True
;
if
(
resetOptions
==
True
)
...
...
@@ -1805,7 +1811,14 @@ N/A
if
(
*
nxagentWindowName
==
'\0'
)
{
snprintf
(
nxagentWindowName
,
NXAGENTWINDOWNAMELENGTH
,
"NX"
);
if
(
nxagentX2go
)
{
snprintf
(
nxagentWindowName
,
NXAGENTWINDOWNAMELENGTH
,
"X2Go Agent"
);
}
else
{
snprintf
(
nxagentWindowName
,
NXAGENTWINDOWNAMELENGTH
,
"NX Agent"
);
}
}
/*
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
37383646
...
...
@@ -192,7 +192,7 @@ int nxagentX2go;
* Checking if agent is x2go agent
*/
void
checkX2goAgent
()
void
checkX2goAgent
(
void
)
{
extern
const
char
*
nxagentProgName
;
if
(
strcasecmp
(
nxagentProgName
,
"x2goagent"
)
==
0
)
...
...
@@ -221,11 +221,6 @@ void InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
#endif
/*
* Check if we running as X2Go Agent
*/
checkX2goAgent
();
/*
* Print our pid and version information.
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/Init.h
View file @
37383646
...
...
@@ -46,6 +46,7 @@ extern int nxagentBackingStore;
extern
int
nxagentSaveUnder
;
extern
int
nxagentX2go
;
void
checkX2goAgent
(
void
);
extern
ServerGrabInfoRec
nxagentGrabServerInfo
;
...
...
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