Limitations on Linux/Freedesktop platforms

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

Maintainers usually reply within 1 day

@haecker-felix is already working on this.

Since Dec 2, 2026.

  • #3279 by @haecker-felix — open

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, python
Domain
desktop, devtools

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:

  1. 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, ...
    • StartupWMClass only helps partially here
  2. 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.
  3. DBusActivatable=true can be set, but no D-Bus service gets installed, so activation fails.
  4. Icon= is a single absolute path, so there are no per-size icons or -symbolic variants
  5. 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

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.