Unclear docs for Mac

Open
#440 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
macos, python

Research direction

Start with the linked file-type association documentation and the tests/data/jsons/file_types.json example. Determine whether macOS file opening passes a command-line argument or requires event_handler handling, and document the supported approach with a Python example if applicable. Done means the macOS behavior and setup are unambiguous to users.

Written by the indexing model from the issue text.

Description

type::bug
Checklist
  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate
What happened?

I'm confused by the description of file type association for Macs:

https://conda.github.io/menuinst/defining-shortcuts/#associate-your-shortcut-with-file-types-and-url-protocols

It says:

"On macOS, use CFBundleDocumentTypes. Requires no placeholder. The opened document will be automatically passed as a regular command-line argument. "

which sounds great. But I don't think it's working. My application does not seem to be receiving a command line argument when I double-click a file to open it. It just opens the app and that's it.

Then it talks about:

"On macOS, opened files are dispatched via system events...."

OK that is more complicated. So, do I need this event_handler stuff to be able to double-click a file and have it sent to the app? The example given here is confusing to me. Is there an example like the win and linux cases where it's a Python script receiving the file as a command line argument? Or is that not actually possible on Mac and I have to figure out the event_handler method? (an examples of doing that in Python?)

Conda Info
na
Conda Config
na
Conda list
na
Additional Context

No response

Dominant language
Python
Stars
50
Forks
49
Avg merge
1d 22h
Merged PRs (30d)
13

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from conda/menuinst

All issues in conda/menuinst

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.