Skip to content

Commit

Permalink
Documentation: Convert links in the .desktop file to absolute paths (
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Else authored Jul 12, 2024
1 parent 2d1ac0f commit 501af93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions book/src/building-from-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ provided `.desktop` and icon files to their correct folders:
cp contrib/Helix.desktop ~/.local/share/applications
cp contrib/helix.png ~/.icons # or ~/.local/share/icons
```
It is recommended to convert the links in the `.desktop` file to absolute paths to avoid potential problems:
```sh
sed -i -e "s|Exec=hx %F|Exec=$(readlink -f ~/.cargo/bin/hx) %F|g" \
-e "s|Icon=helix|Icon=$(readlink -f ~/.icons/helix.png)|g" ~/.local/share/applications/Helix.desktop
```
To use another terminal than the system default, you can modify the `.desktop`
file. For example, to use `kitty`:
Expand Down

0 comments on commit 501af93

Please sign in to comment.