Limitations on Linux/Freedesktop platforms
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by reading the Linux desktop-file generation and export code in menuinst, then trace how it consumes menu.json and files under $PREFIX/share. The issue proposes exposing packaged desktop integration files and adjusting them where needed, but leaves the design and scope open; done would mean Linux desktop integration supports the listed files and behaviors.
Written by the indexing model from the issue text.
Description
On Linux, menuinst generates its own desktop file from menu.json. With the current approach, several desktop integrations are not possible / don't work as expected. To name some examples:
- The desktop file is renamed to
<menu_name>_<name>.desktop, so its ID no longer matches the app ID.- This breaks everything that looks the app up by ID, for example window <-> launcher matching, notifications, MPRIS, ...
StartupWMClassonly helps partially here
- The desktop file is rebuilt from the menuinst schema, so only the keys the schema knows end up in it.
- Things like translations (
Name[de]=…), desktop actions ([Desktop Action …]) or keys added by newer spec versions are lost. - Most apps already ship a complete desktop file in
$PREFIX/share/applications. Using that file directly would make more sense than rebuilding it.
- Things like translations (
DBusActivatable=truecan be set, but no D-Bus service gets installed, so activation fails.Icon=is a single absolute path, so there are no per-size icons or-symbolicvariants- There is no search integration (GNOME Shell search providers or KRunner plugins).
A full Linux desktop integration needs more than a single desktop file. Stuff like D-Bus services, icons, search providers and similar files have to be exported as well.
Instead of modelling all of these files in the menuinst schema, we could use the files the conda package already ships in $PREFIX/share, and only adjust them where needed, e.g. pointing Exec= to the right executable in the environment. This would close the gaps above and remove the need to duplicate everything in the menuinst json.
Flatpak can be a good source of inspiration here. It doesn't generate any of these files itself. It takes the desktop file, icons, D-Bus services and so on that the app ships, and makes them visible to the desktop by adding its export directory to XDG_DATA_DIRS.
Additional context: prefix-dev/pixi#7351
- 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
-
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
-
Convoluted windows shortcut code causing security problemsPossibly taken @lrandersson claimed this 202 days ago. Opentype::bug
conda/menuinst#468 · 11 comments · 1 reaction · 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