mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
Updated to use alternative opennx if nomachine client not found
This commit is contained in:
parent
d4c065355c
commit
7b12f3e359
@ -61,10 +61,19 @@ public class WindowsApplet implements OsApplet {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
String cmd = WinRegistry.readString(WinRegistry.HKEY_CURRENT_USER, "Software\\Classes\\NXClient.session\\shell\\open\\command", "");
|
String cmd = WinRegistry.readString(WinRegistry.HKEY_CURRENT_USER, "Software\\Classes\\NXClient.session\\shell\\open\\command", "");
|
||||||
if ( null == cmd )
|
if ( null == cmd )
|
||||||
javax.swing.JOptionPane.showMessageDialog(null, "Can't find Nomachine client. Please, install it");
|
{
|
||||||
|
// "C:\Program Files (x86)\OpenNX\bin\opennx.exe" --session "%1"
|
||||||
|
cmd = WinRegistry.readString(WinRegistry.HKEY_CURRENT_USER, "Software\\InnoviData\\OpenNX\\Config", "SystemNxDir");
|
||||||
|
if( null != cmd )
|
||||||
|
{
|
||||||
|
cmd = "\"" + cmd + "\\bin\\opennx.exe\" --autologin --session \"%1\"";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( null == cmd )
|
||||||
|
javax.swing.JOptionPane.showMessageDialog(null, "Can't find neither OpenNX or Nomachine client. Please, install one of them.");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nxFileName = nxFileName.replace("\\", "\\\\");
|
nxFileName = nxFileName.replace("\\", "\\\\");
|
||||||
|
Loading…
Reference in New Issue
Block a user