[GH-ISSUE #144] Include psst.desktop file in Linux installer #105

Closed
opened 2026-02-28 14:30:39 +03:00 by kerem · 11 comments
Owner

Originally created by @flotwig on GitHub (Aug 25, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/144

Include a .desktop file so that Linux users can search for the application, see the icon (once there's an icon), etc.

Install a file like the following:

[Desktop Entry]
Name=Psst
Exec=/usr/bin/psst-gui
Icon=...
Type=Application

In /usr/share/applications or ~/.local/share/applications if a local install.

.desktop entry spec: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

Originally created by @flotwig on GitHub (Aug 25, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/144 Include a `.desktop` file so that Linux users can search for the application, see the icon (once there's an icon), etc. Install a file like the following: ``` [Desktop Entry] Name=Psst Exec=/usr/bin/psst-gui Icon=... Type=Application ``` In `/usr/share/applications` or `~/.local/share/applications` if a local install. `.desktop` entry spec: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
kerem closed this issue 2026-02-28 14:30:39 +03:00
Author
Owner

@flotwig commented on GitHub (Aug 25, 2021):

Hmm, I see there is a desktop file, but it is not being installed: https://github.com/jpochyla/psst/blob/master/.pkg/psst.desktop

<!-- gh-comment-id:905879136 --> @flotwig commented on GitHub (Aug 25, 2021): Hmm, I see there is a desktop file, but it is not being installed: https://github.com/jpochyla/psst/blob/master/.pkg/psst.desktop
Author
Owner

@pablodz commented on GitHub (Aug 26, 2021):

#110

<!-- gh-comment-id:905994934 --> @pablodz commented on GitHub (Aug 26, 2021): #110
Author
Owner

@jpochyla commented on GitHub (Aug 29, 2021):

We have a .desktop included in the .deb, is something wrong with it?

<!-- gh-comment-id:907803767 --> @jpochyla commented on GitHub (Aug 29, 2021): We have a .desktop included in the .deb, is something wrong with it?
Author
Owner

@danyspin97 commented on GitHub (Aug 31, 2021):

.deb represents only a small fraction of all the Linux distributions and UNIX systems. On all other systems there should be a build system/installation script.

cargo install doesn't install files outside the build process, like psst.desktop. The most used program for installation is make. However, Makefiles are really hard to get right and they never support user-wide installation, as proposed by @flotwig.

There are two additional systems developed exactly for projects like psst: rinstall and cargo-native-install.

rinstall is my project so I am biased towards it, as it also supports user-wide installation that might be preferred for psst until is packaged by most distro. If you'd like to, I can add rinstall support for psst. But feel free to choose whatever you prefer.

<!-- gh-comment-id:909343988 --> @danyspin97 commented on GitHub (Aug 31, 2021): `.deb` represents only a small fraction of all the Linux distributions and UNIX systems. On all other systems there should be a build system/installation script. `cargo install` doesn't install files outside the build process, like `psst.desktop`. The most used program for installation is `make`. However, `Makefiles` are really hard to get right and they never support user-wide installation, as proposed by @flotwig. There are two additional systems developed exactly for projects like psst: [rinstall](https://github.com/danyspin97/rinstall) and [cargo-native-install](https://github.com/chorman0773/cargo-native-install/). rinstall is my project so I am biased towards it, as it also supports user-wide installation that might be preferred for psst until is packaged by most distro. If you'd like to, I can add rinstall support for psst. But feel free to choose whatever you prefer.
Author
Owner

@jpochyla commented on GitHub (Sep 1, 2021):

@DanySpin97 thanks for the suggestion, but isn't the Linux packaging mostly a responsibility of the distributions? We build the .deb in the CI, and i'd be glad to include i.e. RPM, but I'm not sure we need something more complicated. Especially now, in the alpha stage. Anyway, we we have #16 open for this.

<!-- gh-comment-id:910401421 --> @jpochyla commented on GitHub (Sep 1, 2021): @DanySpin97 thanks for the suggestion, but isn't the Linux packaging mostly a responsibility of the distributions? We build the .deb in the CI, and i'd be glad to include i.e. RPM, but I'm not sure we need something more complicated. Especially now, in the alpha stage. Anyway, we we have #16 open for this.
Author
Owner

@danyspin97 commented on GitHub (Sep 1, 2021):

Linux packing mostly a responsibility of the distributions?

No, installation is the responsibility of the developer.

We build the .deb in the CI, and i'd be glad to include i.e. RPM, but I'm not sure we need something more complicated.

There are tons of distributions out there that don't use deb. You can ship a psst.spec file for building the RPM but just few distributions support RPM. In the psst.spec you should install psst by running install for each file and directory, which is the same thing that usually make install does. Cast aside that, both rinstall and cargo-native-install are really simple to setup.

<!-- gh-comment-id:910406262 --> @danyspin97 commented on GitHub (Sep 1, 2021): > Linux packing mostly a responsibility of the distributions? No, installation is the responsibility of the developer. > We build the .deb in the CI, and i'd be glad to include i.e. RPM, but I'm not sure we need something more complicated. There are tons of distributions out there that don't use deb. You can ship a `psst.spec` file for building the RPM but just few distributions support RPM. In the `psst.spec` you should install psst by running `install` for each file and directory, which is the same thing that usually `make install` does. Cast aside that, both `rinstall` and `cargo-native-install` are really simple to setup.
Author
Owner

@danyspin97 commented on GitHub (Sep 1, 2021):

Btw, #16 is for a different thing. Bundle != packaging and installation.

<!-- gh-comment-id:910408099 --> @danyspin97 commented on GitHub (Sep 1, 2021): Btw, #16 is for a different thing. Bundle != packaging and installation.
Author
Owner

@pablodz commented on GitHub (Sep 1, 2021):

Do you mean this image?

<!-- gh-comment-id:910437829 --> @pablodz commented on GitHub (Sep 1, 2021): Do you mean this image? ![](https://imgur.com/1KsCmAI.png)
Author
Owner

@flotwig commented on GitHub (Sep 1, 2021):

We have a .desktop included in the .deb, is something wrong with it?

@jpochyla It's not being installed on Ubuntu, the app has no global desktop entry. Hence this issue, which probably doesn't need to be closed yet.

.deb represents only a small fraction of all the Linux distributions and UNIX systems. On all other systems there should be a build system/installation script.

@DanySpin97 Ubuntu is the most widely used desktop Linux distro and it is Debian-based, so it's probably good for the .deb to work correctly.

<!-- gh-comment-id:910461640 --> @flotwig commented on GitHub (Sep 1, 2021): > We have a .desktop included in the .deb, is something wrong with it? @jpochyla It's not being installed on Ubuntu, the app has no global desktop entry. Hence this issue, which probably doesn't need to be closed yet. > .deb represents only a small fraction of all the Linux distributions and UNIX systems. On all other systems there should be a build system/installation script. @DanySpin97 Ubuntu is the most widely used desktop Linux distro and it is Debian-based, so it's probably good for the .deb to work correctly.
Author
Owner

@jpochyla commented on GitHub (Sep 1, 2021):

@flotwig Look, I'm developing and using Psst on Mac, and Linux support is strictly community-driven. If there's something wrong with the .deb, or just doesn't suite you, please open a PR.

<!-- gh-comment-id:910472347 --> @jpochyla commented on GitHub (Sep 1, 2021): @flotwig Look, I'm developing and using Psst on Mac, and Linux support is strictly community-driven. If there's something wrong with the .deb, or just doesn't suite you, please open a PR.
Author
Owner

@flotwig commented on GitHub (Sep 1, 2021):

Until a PR closes this issue, it would be best to keep this issue open to track it so new reporters don't duplicate this issue.

<!-- gh-comment-id:910505575 --> @flotwig commented on GitHub (Sep 1, 2021): Until a PR closes this issue, it would be best to keep this issue open to track it so new reporters don't duplicate this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#105
No description provided.