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
46c8dce9
Commit
46c8dce9
authored
May 05, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use nxdialog as nxclient replacement
if neither NX_CLIENT ist provided nor /usr/NX/bin/nxclient is existing try /usr/bin/nxdialog. Currently the path is hardcoded.
parent
db105546
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
Loop.cpp
nxcomp/src/Loop.cpp
+15
-5
No files found.
nxcomp/src/Loop.cpp
View file @
46c8dce9
...
...
@@ -9842,19 +9842,29 @@ char *GetClientPath()
//
// Try to guess the location of the client.
//
clientEnv
=
"/usr/NX/bin/nxclient"
;
// FIXME: replace hardcoded paths by built-time variables if possible
#ifdef __APPLE__
clientEnv
=
"/Applications/NX Client for OSX.app/Contents/MacOS/nxclient"
;
#endif
#ifdef __CYGWIN32__
#else
# if defined(__CYGWIN32__)
clientEnv
=
"C:
\\
Program Files
\\
NX Client for Windows
\\
nxclient"
;
# else
clientEnv
=
"/usr/NX/bin/nxclient"
;
struct
stat
fileStat
;
if
((
stat
(
clientEnv
,
&
fileStat
)
==
-
1
)
&&
(
EGET
()
==
ENOENT
))
{
clientEnv
=
"/usr/bin/nxdialog"
;
}
# endif
#endif
}
...
...
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