Linux .desktop file #9408
Replies: 2 comments 4 replies
|
Icons and .desktop files need to go in special, preferably root owned, locations so for a single file executable, you'd have to distribute them separately and possibly also have to make assumptions about where the user puts your application. They make more sense for system packages which can write anywhere and decide where the executable should go. They tell the desktop that your application exists and what files it can open. You don't need them but they make things feel less ad-hoc. Whether they're worth it or not is up to you.
Again, depends on your priorities. If you just want a file server that you don't have to pay for then GitHub is fine. |
|
On Linux I found it's so much better to just build in onedir mode and bundle as an AppImage https://appimage.github.io/appimagetool/
|
Uh oh!
There was an error while loading. Please reload this page.
I published a simple Python utility on PyPI a few years ago. It converts a file from an electronic schematic drawing tool into a format suitable for a stripboard design tool.
However it wasn't very user-friendly to install or use. I've added TkInter and built a minimal app using PyInstaller aimed at Linux intially. It gives me a single file which can be downloaded and then run by double-clicking on the icon. A great improvement.
ChatGPT suggested that I should bundle a myapp.desktop file and myapp.icon too. I can't see how this would work, as surely they need to be installed in the correct Linux locations. Is it hallucinating?
What's the best way to publish it - on GitHub? I'd like to make it available as a single-file PyInstaller app including Python for Linux and something similar without Python for Mac/Windows until I get a Windows and/or Mac PC to build it on.
All reactions