This commit is contained in:
Kovid Goyal 2022-04-08 15:44:33 +05:30
parent c40ef01445
commit b78fbb4521
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -49,14 +49,15 @@ particular desktop, but it should work for most major desktop environments.
.. code-block:: sh .. code-block:: sh
# Create a symbolic link to add kitty to PATH (assuming ~/.local/bin is in # Create a symbolic link to add kitty to PATH (assuming ~/.local/bin is in
# your PATH) # your system-wide PATH)
ln -s ~/.local/kitty.app/bin/kitty ~/.local/bin/ ln -s ~/.local/kitty.app/bin/kitty ~/.local/bin/
# Place the kitty.desktop file somewhere it can be found by the OS # Place the kitty.desktop file somewhere it can be found by the OS
cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/ cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/
# If you want to open text files and images in kitty via your file manager also add the kitty-open.desktop file # If you want to open text files and images in kitty via your file manager also add the kitty-open.desktop file
cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/ cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/
# Update the path to the kitty icon in the kitty.desktop file(s) # Update the paths to the kitty and its icon in the kitty.desktop file(s)
sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop sed -i "s|Icon=kitty|Icon=/home/$USER/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop
sed -i "s|Exec=kitty|Exec=/home/$USER/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop
.. note:: .. note::
If you use the venerable `stow <https://www.gnu.org/software/stow/>`_ If you use the venerable `stow <https://www.gnu.org/software/stow/>`_