Relax location check on macOS

This commit is contained in:
crschnick 2023-08-16 17:40:27 +00:00
parent b50a6a3955
commit 179ace133f

View file

@ -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);
} }