fix GNOME desktop entry instructions #141
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Gotta use absolute paths in
Exec
in.desktop
files or they don't show up automatically. Not sure if this is true for everyone/always, but it was for me.Sources:
https://bbs.archlinux.org/viewtopic.php?id=256867
https://discourse.gnome.org/t/application-entries-desktop-not-displayed/3670
https://discussion.fedoraproject.org/t/how-to-create-a-desktop-file-to-show-up-among-my-apps/128596/5
These sources indicate the underlying issue appears has to do with an issue with the user's non-interactive path, but I think the issue might actually be the tilde is not expanded. I didn't attempt to debug further, I just used an absolute path and it worked (they immediately started showing up when I press the "Super" key). Using an absolute path seems like the safer (and more annoying) way to go to make it work for most people. I do wish tilde worked more reliably.
FFR, my desktop right now is GNOME, as shipped with 64-bit Ubuntu 22.04 LTS. I think that means GNOME 3 and Wayland.
Important
Update GNOME desktop entry instructions to use absolute paths in
src/running-on-gnome.rst
.src/running-on-gnome.rst
to use absolute paths inExec
field of.desktop
files for GNOME desktop entries.Exec="~/.local/opt/activitywatch/start.sh"
withExec="/home/user/.local/opt/activitywatch/start.sh"
.Exec="~/.local/opt/activitywatch/kill.sh"
withExec="/home/user/.local/opt/activitywatch/kill.sh"
.This description was created by for 8389e96. It will automatically update as commits are pushed.