This commit is contained in:
crschnick
2025-06-04 15:52:52 +00:00
parent e46547b2bf
commit c3bc9a618c
3 changed files with 6 additions and 5 deletions
@@ -34,18 +34,18 @@ public interface ExternalVncClient {
switch (OsType.getLocal()) {
case OsType.Linux linux -> {
l.add(RemminaVncClient.class);
l.add(RealVncClient.Linux.class);
l.add(TigerVncClient.Linux.class);
l.add(RealVncClient.Linux.class);
}
case OsType.MacOs macOs -> {
l.add(ScreenSharingVncClient.class);
l.add(RealVncClient.MacOs.class);
l.add(TigerVncClient.MacOs.class);
l.add(RealVncClient.MacOs.class);
}
case OsType.Windows windows -> {
l.add(TightVncClient.class);
l.add(RealVncClient.Windows.class);
l.add(TigerVncClient.Windows.class);
l.add(RealVncClient.Windows.class);
l.add(TightVncClient.class);
}
}
l.add(CustomVncClient.class);
@@ -130,7 +130,7 @@ public abstract class TigerVncClient implements ExternalVncClient {
public Optional<Path> determineInstallation() {
try (var appsStream = Files.list(Path.of("/Applications"))) {
var dirs = appsStream.toList();
return dirs.stream().filter(path -> path.toString().startsWith("TigerVNC")).findFirst();
return dirs.stream().filter(path -> path.toString().contains("TigerVNC viewer")).findFirst();
} catch (IOException e) {
ErrorEvent.fromThrowable(e).handle();
return Optional.empty();
+1
View File
@@ -136,3 +136,4 @@ vnc=VNC
tightVnc=TightVNC
tigerVnc=TigerVNC
realVnc=RealVNC
screenSharing=Screen Sharing.app