From 437fc0d8c245d58cc8c79141d0fe017b0eaf281e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 9 Apr 2024 12:47:14 +0530 Subject: [PATCH] Revert renaming of kitty.dekstop to kitty-terminal.desktop Changing the default value for application id/WM_CLASS is a no go, since existing scripts can depend on it and I try to avoid breaking people's workflows wherever possible. Guess xdg-mime will just have to live with the horror of an unhyphenated file name. Fixes #7326 --- docs/binary.rst | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/binary.rst b/docs/binary.rst index b88ead069..dc1ba019f 100644 --- a/docs/binary.rst +++ b/docs/binary.rst @@ -41,7 +41,7 @@ Desktop integration on Linux -------------------------------- If you want the kitty icon to appear in the taskbar and an entry for it to be -present in the menus, you will need to install the :file:`kitty-terminal.desktop` file. +present in the menus, you will need to install the :file:`kitty.desktop` file. The details of the following procedure may need to be adjusted for your particular desktop, but it should work for most major desktop environments. @@ -50,8 +50,8 @@ particular desktop, but it should work for most major desktop environments. # Create symbolic links to add kitty and kitten to PATH (assuming ~/.local/bin is in # your system-wide PATH) ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/ - # Place the kitty-terminal.desktop file somewhere it can be found by the OS - cp ~/.local/kitty.app/share/applications/kitty-terminal.desktop ~/.local/share/applications/ + # Place the kitty.desktop file somewhere it can be found by the OS + 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 cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/ # Update the paths to the kitty and its icon in the kitty desktop file(s) diff --git a/setup.py b/setup.py index f4a3fab39..61352c2a6 100755 --- a/setup.py +++ b/setup.py @@ -1340,7 +1340,7 @@ def create_linux_bundle_gunk(ddir: str, args: Options) -> None: shutil.copy2(f'logo/kitty.{ext}', icdir) deskdir = os.path.join(ddir, 'share', 'applications') safe_makedirs(deskdir) - with open(os.path.join(deskdir, 'kitty-terminal.desktop'), 'w') as f: + with open(os.path.join(deskdir, 'kitty.desktop'), 'w') as f: f.write( '''\ [Desktop Entry]