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/
# 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.
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.