Commit 46c8dce9 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

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
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment