mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-20 06:11:13 +00:00
Relax location check on macOS
This commit is contained in:
parent
b50a6a3955
commit
179ace133f
|
@ -66,7 +66,7 @@ public abstract class ExternalApplicationType implements PrefsChoiceValue {
|
||||||
}).sorted(Comparator.comparingInt(value -> value.length())).toList();
|
}).sorted(Comparator.comparingInt(value -> value.length())).toList();
|
||||||
|
|
||||||
// Prefer app in proper applications directory
|
// Prefer app in proper applications directory
|
||||||
var app = valid.stream().filter(s -> s.startsWith("/Applications")).findFirst();
|
var app = valid.stream().filter(s -> s.contains("/Applications")).findFirst();
|
||||||
if (app.isPresent()) {
|
if (app.isPresent()) {
|
||||||
return app.map(Path::of);
|
return app.map(Path::of);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue