mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-23 08:55:41 +00:00
Fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Generated
+1
@@ -136,3 +136,4 @@ vnc=VNC
|
||||
tightVnc=TightVNC
|
||||
tigerVnc=TigerVNC
|
||||
realVnc=RealVNC
|
||||
screenSharing=Screen Sharing.app
|
||||
Reference in New Issue
Block a user