This commit is contained in:
crschnick
2025-06-03 22:44:49 +00:00
parent 24c3089c87
commit eb45a66473
6 changed files with 6 additions and 4 deletions
@@ -48,7 +48,7 @@ public class ChoicePaneComp extends Comp<CompStructure<VBox>> {
@Override
public String toString(Entry object) {
if (object == null || object.name() == null) {
return AppI18n.get("none");
return "";
}
return object.name().getValue();
@@ -42,7 +42,7 @@ public class CustomVncClient implements ExternalVncClient {
.nameAndDescription("customVncCommand")
.addComp(new TextFieldComp(command, false)
.apply(struc -> struc.get().setPromptText("myvncclient $ADDRESS"))
.maxWidth(600))
.maxWidth(600), command)
.bind(() -> CustomVncClient.builder().command(command.get()).build(), property);
}
@@ -36,7 +36,6 @@ public interface ExternalVncClient {
static List<Class<?>> getClasses() {
var l = new ArrayList<Class<?>>();
l.add(InternalVncClient.class);
l.add(TightVncClient.class);
switch (OsType.getLocal()) {
case OsType.Linux linux -> {
l.add(RealVncClient.Linux.class);
@@ -47,6 +46,7 @@ public interface ExternalVncClient {
l.add(TigerVncClient.MacOs.class);
}
case OsType.Windows windows -> {
l.add(TightVncClient.class);
l.add(RealVncClient.Windows.class);
l.add(TigerVncClient.Windows.class);
}
@@ -71,6 +71,7 @@ public abstract class TigerVncClient implements ExternalVncClient {
@Override
public void launch(LaunchConfiguration configuration) throws Exception {
var builder = createBuilder(configuration);
builder.add(0, "vncviewer");
if (configuration.hasFixedPassword()) {
var pw = configuration.retrievePassword();
if (pw.isPresent()) {
+1 -1
View File
@@ -134,5 +134,5 @@ psono=Psono
psonoPlaceholder=Secret ID
vnc=VNC
tightVnc=TightVNC
tigherVnc=TigerVNC
tigerVnc=TigerVNC
realVnc=RealVNC
+1
View File
@@ -1465,3 +1465,4 @@ vncClientDescription=The VNC client to launch when opening VNC connections in XP
integratedXPipeVncClient=Integrated XPipe VNC client
customVncCommand=Custom command
customVncCommandDescription=The custom command to execute to launch VNC sessions. The placeholder string $ADDRESS will be replaced by the quoted address when called.
vncConnections=VNC connections