question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Desktop integration (linux)

See original GitHub issue

I 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:open
  • Created 2 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
uranusjrcommented, Jul 23, 2021

(And we can make that path configurable so you can point it to your ~/.local/share if you want.)

2reactions
uranusjrcommented, Jul 23, 2021

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Desktop integration - AppImage documentation
This section discusses how we integrate AppImages into the Linux desktops, what technologies are involved and what customizations and additions ...
Read more >
How to Easily Integrate AppImages into your Linux Desktop
AppImages are a great way to run applications on Linux, but they don't integrate with your desktop. Run an AppImage app, and try...
Read more >
Desktop Integration - Flatpak documentation
Requirements & Conventions covers the essential aspects of Linux desktop integration. This page provides further information on optional desktop integration ...
Read more >
AppImageLauncher - GitHub
AppImageLauncher. makes your Linux desktop AppImage ready™. Integrate AppImages to your application launcher with one click, and manage, update and remove ...
Read more >
This Tool Integrates AppImages with Ubuntu Desktop
AppImageLauncher is a system integration tool that creates proper shortcuts to your favourite AppImages so you can open them from an app ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found