Documentation: Convert links in the .desktop file to absolute paths (#11115)

This commit is contained in:
David Else 2024-07-12 02:16:55 +01:00 committed by GitHub
parent 2d1ac0f699
commit 501af93c92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,6 +148,12 @@ ### Configure the desktop shortcut
cp contrib/Helix.desktop ~/.local/share/applications cp contrib/Helix.desktop ~/.local/share/applications
cp contrib/helix.png ~/.icons # or ~/.local/share/icons 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` To use another terminal than the system default, you can modify the `.desktop`
file. For example, to use `kitty`: file. For example, to use `kitty`: