1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

Updated to use alternative opennx if nomachine client not found

This commit is contained in:
Adolfo Gómez 2014-07-08 11:46:01 +00:00
parent 7b12f3e359
commit ce07adcc0d

View File

@ -73,6 +73,16 @@ public class WindowsApplet implements OsApplet {
}
String cmd = WinRegistry.readString(WinRegistry.HKEY_CURRENT_USER, "Software\\Classes\\NXClient.session\\shell\\open\\command", "");
if ( null == cmd )
{
// "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 Nomachine client. Please, install it");
else