forked from sqweek/dialog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osx: set NSApp activation policy if required
Currently, macOS dialogs don't work from the command-line, because the NSApp activation policy defaults to "Prohibited" in that context. This commit fixes that by setting the "Accessory" activation policy before opening a dialog, if (and only if) we are in the Prohibited state. Closes sqweek#81. Fixes sqweek#15.
- Loading branch information
1 parent
67b9be5
commit c980765
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters