I need to know whether the app was launched via an URL
in DidFinishLaunching
.
The notification
parameter in DidFinishLaunching
contains a key LaunchIsDefaultLaunchKey
which according to Apple documentation :
"The value is NO if the app was launched to open or print a file, to perform a Service action, if the app had saved state that will be restored, or if the app launch was in some other sense not a default launch"
This covers the case of the app being opened by an URL but it also covers cases that I don't need.
On iOS there is DidFinishLaunching
with launchOptions
dictionary which contains the URL in the LaunchOptionsUrlKey
key.
Is there something similar to this on macOs?