Canonical location in `PREFIX` for menu item artifacts

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
desktop

Research direction

No files or tests are named. Start by tracing the CEP preview's platform-specific shortcut creation and uninstall behavior for Linux, macOS, and Windows, then test the proposed canonical files under PREFIX, including Windows drive-letter cases. Done means generated menu files remain in PREFIX and system locations point to them reliably during uninstall.

Written by the indexing model from the issue text.

Description

stale::recovered type::feature type::poc

The CEP preview of menuinst creates shortcuts for Linux, macOS and Windows in three default locations:

  • Linux: ~/.local/share/applications
  • macOS: ~/Applications
  • Windows: whatever the default locations for Start Menu, Quick Launch and Desktop are.

For this we create full files with computable paths, so we can re-obtain these paths at uninstall time if needed. The problem is that these files might not be there by the time we want to uninstall them (Windows users might rename or move the shortcuts, and they'd still work; macOS users might put the .app directory somewhere else; I am not expecting Linux users to mess with their .desktop files but you never know).

Instead of doing this, @goanpeca and I were talking about creating the actual menu files in PREFIX itself (under var/menuinst or similar), and the symlink to this canonical location from the system parts. This needs to be tested (specially on Windows, with different letter units?), but it should work. It would also have the benefit of having an easy-to-find location for the generated shortcuts without having to re-run menuinst to find out.

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.