Skip to content

Commit

Permalink
macOS recognition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Dec 5, 2024
1 parent 6739219 commit 9e8744a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public MacApplication(String id, String applicationName) {
public boolean isAvailable() {
try (ShellControl pc = LocalShell.getShell().start()) {
var out = pc.command(String.format(
"mdfind -literal 'kMDItemDisplayName = \"%s.app\"' -onlyin /Applications -onlyin ~/Applications -onlyin /System/Applications",
"mdfind -literal 'kMDItemFSName = \"%s.app\"' -onlyin /Applications -onlyin ~/Applications -onlyin /System/Applications",
applicationName))
.readStdoutIfPossible();
return out.isPresent() && !out.get().isBlank();
Expand Down

0 comments on commit 9e8744a

Please sign in to comment.