Provide "force" or "replace" functionality
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- desktop-dev
Research direction
Start by locating the create and remove APIs that handle shortcuts and menu items, then trace where the duplicate-name/location exception is raised. Define the force or replace option's API behavior, including replacement of an existing menu item during package updates, and verify that the existing failure behavior remains unchanged when it is not requested.
Written by the indexing model from the issue text.
Description
Checklist
- I added a descriptive title
- I searched open requests and couldn't find a duplicate
What is the idea?
The current API will raise an exception if a shortcut with the same name/location is already in place. It would be nice to have some sort of "force" functionality so that the command does not fail, and overwrites the found menu item with the new one.
Why is this needed?
In the context of updates of application packages, the package containing the menu might be the same for different versions, so having the ability to replace an existing menu with a new version without having to first delete the all one "manually" via the API would be benefitial.
What should happen?
Add a parameter to the create remove API could be an option.
Additional Context
No response
- Dominant language
- Python
- Stars
- 50
- Forks
- 49
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 13
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conda/menuinst
-
CMD shell activation changed in `conda 25.3.0`Possibly taken @marcoesters claimed this 78 days ago. Openstale::recovered type::bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
conda/menuinst#321 · 13 comments ·
Maintainers usually reply within 1 day
-
Limitations on Linux/Freedesktop platformsPossibly taken @haecker-felix claimed this 1 day ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
conda/menuinst#586 · 4 comments ·
Maintainers usually reply within 1 day
-
Windows shortcuts can silently omit CONDA_PREFIX / env config vars from the activation scriptPossibly taken @marcoesters claimed this 78 days ago. Opentype::bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
conda/menuinst#545 · 6 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Option to set Windows shortcut Minimized or Maximized propertyMay be free again @lrandersson claimed this 198 days ago, and no pull request is open. Opentype::feature
conda/menuinst#484 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Add --set-global-placeholder CLI flag for custom placeholdersMay be free again @lrandersson claimed this 202 days ago, and no pull request is open. Opentype::feature
conda/menuinst#479 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
plone/plone.observability#114 ·
Maintainers usually reply within 1 day
-
area:docs type:docs
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jejjohnson/gauss_flows#246 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openvax/varcode#824 · 1 comment ·
Maintainers usually reply within 1 day
-
netbox status: needs triage type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
netbox-community/netbox#23868 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
emeryberger/CSrankings#15757 ·
Maintainers usually reply within 9 days