From 3a7f2d28c39385bee30a19c3a681060951c71d3e Mon Sep 17 00:00:00 2001 From: Dylan Leifer-Ives <40322629+dleiferives@users.noreply.github.com> Date: Thu, 23 Oct 2025 18:48:07 -0700 Subject: [PATCH 1/2] Add tip for absolute Exec path in documentation Added a tip about replacing the Exec path with an absolute one in the running-on-gnome documentation. Sometime in the last 2 years seems like absolute path is required. --- src/running-on-gnome.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/running-on-gnome.rst b/src/running-on-gnome.rst index 89c3aec..21d822f 100644 --- a/src/running-on-gnome.rst +++ b/src/running-on-gnome.rst @@ -58,3 +58,16 @@ Then you can create two desktop files for these scripts to show up among your ap Version=1.0 Icon=activitywatch Categories=Utility; + +.. tip:: + You will most likely have to replace the :code:`Exec` relative path with an absolute one. + That is: + + :code:`Exec="~/.local/opt/activitywatch/kill.sh"` + + Replaced with + + :code:`Exec="/home//.local/opt/activitywatch/kill.sh"` + + With `` replaced with your username. + From d47051a35e1b91240eb4dc4d0157007c36be5f26 Mon Sep 17 00:00:00 2001 From: Dylan Leifer-Ives <40322629+dleiferives@users.noreply.github.com> Date: Thu, 23 Oct 2025 18:56:29 -0700 Subject: [PATCH 2/2] Update src/running-on-gnome.rst Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- src/running-on-gnome.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/running-on-gnome.rst b/src/running-on-gnome.rst index 21d822f..d7175a0 100644 --- a/src/running-on-gnome.rst +++ b/src/running-on-gnome.rst @@ -60,7 +60,7 @@ Then you can create two desktop files for these scripts to show up among your ap Categories=Utility; .. tip:: - You will most likely have to replace the :code:`Exec` relative path with an absolute one. + You will most likely have to replace the :code:`Exec` path using the `~` shorthand with a full absolute path, as `~` is not expanded in desktop files. That is: :code:`Exec="~/.local/opt/activitywatch/kill.sh"`