Skip to content

Commit

Permalink
Use Bundle ID to locate System Preferences.app
Browse files Browse the repository at this point in the history
System Preferences.app is located at a different location in macOS 10.15
  • Loading branch information
Mento committed Aug 12, 2019
1 parent 3f63bad commit a01d1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GPGTaskHelper.m
Expand Up @@ -1124,7 +1124,7 @@ + (BOOL)showGPGSuitePreferencesWithArguments:(NSDictionary *)arguments {
}
}

NSURL *appURL = [NSURL fileURLWithPath:@"/Applications/System Preferences.app"];
NSURL *appURL = [[NSWorkspace sharedWorkspace] URLForApplicationWithBundleIdentifier:@"com.apple.systempreferences"];
NSURL *paneURL = [NSURL fileURLWithPath:panePath];

// Open GPGPreferences.prefPane with System Preferences.app
Expand Down

0 comments on commit a01d1d9

Please sign in to comment.