About the read-only system volume in macOS Catalina

Catalina has a read-only system volume, separate from other files.


That makes the utilities moved to /System/Applications/Utilities instead of /Applications/Utilities.


My question is, from code level, how can I get the location of Terminal.app without checking the OS version?


Thanks.

Replies

Use the bundle ID.

Use the bundle ID.

Right. Specifically, the

urlForApplication(withBundleIdentifier:)
method on
NSWorkspace
.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

ps DTS is closed 25…29 Nov in observance of the US Thanksgiving holiday.