Desktop integration (linux)
See original GitHub issueI was helping someone to install “spyder” the GUI IDE on linux. The installation goes fine and the app can be run by typing “spyder” in a terminal, but it is not available in the list of applications in the gui desktop (gnome in this case).
Looking inside the .local/pipx/venv/spyder
, it comes with the required pieces to enable desktop integration.
share/applications/spyder.desktop
share/icons/spyder.png
- and more, not sure if required
Linking these two files into their respective locations inside .local/share
enables the application to appear in the gnome app selector. I kind of see this as an extension of the idea of linking the binary into .local/bin
I’m not sure if this is within scope for pipx, either as part of install possibly with option e.g. --desktop-integration
, or as a separate command. I don’t know if there is something similar for windows and mac…
This may be slightly related to #711.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
Top GitHub Comments
(And we can make that path configurable so you can point it to your
~/.local/share
if you want.)That’s basically what’s discussed in the Discourse thread I linked to, and from what I can tell the concensus is that package shouldn’t be able to install outside a virtual environment.
I guess the best pipx can do is to copy those files to somewhere like
~/.local/pipx/usr/share
(specific location TBD). Would that be enough for you?