Hide kwrite and only use kate for everything?

since kwite is packaged with kate it seems I can’t have the one without the other anymore.
How can I hide kwrite from the application launcher (in a way that doesn’t get lost on updates)?

I’ve just looked through the files installed by their shared package and I guess the two files responsible for the application launcher entries are:

  • /usr/share/applications/org.kde.kate.desktop
  • /usr/share/applications/org.kde.kwrite.desktop

This says the put a copy of the one that you want with the name of the one you don’t want into ~/.local/share. Looking at that folder looks like they meant the subfolder ~/.local/share/applications/

Copy the desktop file to userspace and edit it:

# Create the folder if it doesn't already exist
mkdir -p ~/.local/share/applications/

# Copy the desktop file for editing
cp /usr/share/applications/org.kde.kwrite.desktop ~/.local/share/applications/

Then open ~/.local/share/applications/org.kde.kwrite.desktop in your favorite text editor like Kate, then add NoDisplay=true at the end, then save. You may need to log out and log back in to see the change.

2 Likes

beautiful, thank you! finally searching for “write” gives me the libreoffice writer application again :sweat_smile:

is there also some way to remove it from the suggested “open with” list and from opening on “middle click” for some files?

That I’m not sure about.

Disclaimer: My knowledge here was only about desktop files, not KDE specific things.

1 Like

okey thanks. With the Desktop file copy with the NoDisplay=true line I can’t find KWrite when looking for different apps to open a file with, but many file types already have it in their suggested list and it seems the first one in this alternatives list can be used by middle-clicking the file. this is different from the default app which can be opened with double-click on the file.

Open “File Associations”
Then manage the file types there.
For example text > plain and you can edit, move, or remove entries in the right panel.
Sadly, in my tests, just searching ‘kwrite’ did not return any results.
But you can use the button on the right “Apply To…” which will allow you to, well, apply the same settings to other sections of the associated file types list.

https://i.imgur.com/13deNWW.png

https://i.imgur.com/1nBWtp9.png

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.