mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-24 17:35:39 +00:00
Fixes
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Generated
+1
-1
@@ -134,5 +134,5 @@ psono=Psono
|
||||
psonoPlaceholder=Secret ID
|
||||
vnc=VNC
|
||||
tightVnc=TightVNC
|
||||
tigherVnc=TigerVNC
|
||||
tigerVnc=TigerVNC
|
||||
realVnc=RealVNC
|
||||
|
||||
Generated
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user