-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
appkit-launcher only injected when event_handler is present (#183)
* appkit-launcher only injected when event_handler is present * add test * add news and docs * pre-commit * Apply suggestions from code review Co-authored-by: Bianca Henderson <[email protected]> --------- Co-authored-by: Bianca Henderson <[email protected]>
- Loading branch information
Showing
5 changed files
with
116 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
### Enhancements | ||
|
||
* <news item> | ||
|
||
### Bug fixes | ||
|
||
* Do not inject the AppKit launcher unless `event_handler` has been set. Only affects macOS. (#179 via #183) | ||
|
||
### Deprecations | ||
|
||
* <news item> | ||
|
||
### Docs | ||
|
||
* <news item> | ||
|
||
### Other | ||
|
||
* <news item> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft-07/schema", | ||
"$id": "https://schemas.conda.io/menuinst-1.schema.json", | ||
"menu_name": "Example with file type association and no event handler (macOS only)", | ||
"menu_items": [ | ||
{ | ||
"name": "FileTypeAssociationNoEventHandler", | ||
"description": "Testing file type association without event handler", | ||
"icon": null, | ||
"command": [ | ||
"{{ PYTHON }}", | ||
"-c", | ||
"import sys, pathlib as p; p.Path(r'__OUTPUT_FILE__').write_text(sys.argv[1])" | ||
], | ||
"platforms": { | ||
"osx": { | ||
"command": [ | ||
"bash", "-c", "nc -l 40258 > __OUTPUT_FILE__" | ||
], | ||
"CFBundleDocumentTypes": [ | ||
{ | ||
"CFBundleTypeName": "org.conda.menuinst.filetype-example-no-event-handler", | ||
"CFBundleTypeRole": "Viewer", | ||
"LSItemContentTypes": ["org.conda.menuinst.main-file-util-no-event-handler"], | ||
"LSHandlerRank": "Default" | ||
} | ||
], | ||
"UTExportedTypeDeclarations": [ | ||
{ | ||
"UTTypeConformsTo": ["public.data", "public.content"], | ||
"UTTypeIdentifier": "org.conda.menuinst.main-file-util-no-event-handler", | ||
"UTTypeTagSpecification": { | ||
"public.filename-extension": ["menuinst-no-event-handler"] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
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