Unverified Commit 424c0e8e authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/use_nxdialog' into 3.6.x

parents db105546 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
}
......
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