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() ...@@ -9842,19 +9842,29 @@ char *GetClientPath()
// //
// Try to guess the location of the client. // Try to guess the location of the client.
// //
// FIXME: replace hardcoded paths by built-time variables if possible
clientEnv = "/usr/NX/bin/nxclient";
#ifdef __APPLE__ #ifdef __APPLE__
clientEnv = "/Applications/NX Client for OSX.app/Contents/MacOS/nxclient"; clientEnv = "/Applications/NX Client for OSX.app/Contents/MacOS/nxclient";
#endif #else
# if defined(__CYGWIN32__)
#ifdef __CYGWIN32__
clientEnv = "C:\\Program Files\\NX Client for Windows\\nxclient"; 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 #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