Bug 410728 - Shortcut deleted with kmenuedit remains in the search results of kickoff
Summary: Shortcut deleted with kmenuedit remains in the search results of kickoff
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) (show other bugs)
Version: 5.93.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-08 15:07 UTC by Patrick Silva
Modified: 2024-02-28 11:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-08-08 15:07:55 UTC
1. open the apps launcher (I used kickoff)
2. click on "Applications" tab, open some category (Internet, Office, etc), right click on the entry of any app, select "Edit application..." (properties window shows up)
3. click "Application" tab, edit "Name" field to "AppName (test)", click "Ok" button
4. uninstall the same app which entry you just edited
5. wait some seconds until kickoff to update the apps list
6. open kickoff and search for "AppName (test)": "AppName (test)" is still listed in the search results
7. right click on kickoff icon, select "Edit applications..."
8. search for "AppName (test)", right click on "AppName (test)" result, select "Delete", press ctrl+s to save
9. open kickoff and search for "AppName (test)" again: "AppName (test)" is still listed in the search results.
Relogin or rebbot does not solve this issue.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.60.0
Qt Version: 5.13.0
Comment 1 Christoph Feck 2019-08-20 19:55:21 UTC
Uninstalling the application doesn't remove the .desktop file you added to your home directory (because it cannot edit the .desktop files added by the package manager).

One solution would be to check all desktop files if they are still "executable" on every menu rebuilt.
Comment 2 Patrick Silva 2022-08-14 14:22:28 UTC
easier steps to reproduce:
1. create or edit a shortcut with kmenuedit
2. search for the created/edited shortcut with kickoff - kickoff finds the shortcut as expected
3. delete the previously created/edited shortcut with kmenuedit
4. search for the deleted shortcut with kickoff - the deleted shortcut is unexpectedly found

Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Graphics Platform: Wayland
Comment 3 Patrick Silva 2022-08-14 14:34:13 UTC
Humm, in fact any shortcut deleted with kmenuedit remains in the search results.

1. delete a shortcut with kmenuedit
2. save the change
3. search for the deleted shortcut with kickoff

Result: deleted shortcut is unexpectedly found
Comment 4 Patrick Silva 2022-08-14 16:20:53 UTC
Thinking better, if the shortcut was deleted but the app is still installed, possibly the fact that the app remains in the search results of kickoff is not a problem, and it is intentional. I'm not sure though.
Comment 5 piedro 2024-02-15 15:37:47 UTC
It's 2024. This is still the case... 

And it does not only happen apps that are still installed - I just had the problem of a sticking entry of an application I tested an deleted afterwards. Th is is on Opensuse Tumbleweed with the latest iteration of KDE Plasma: 

Operating System: openSUSE Tumbleweed 20240212
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.7.4-1-default (64-bit)
Graphics Platform: X11

Also the general recommendation seems to be to delete *.desktop files referring to the application in ~/.local/share/applications ... 
This still doesn't work - the application launcher still finds the entries of the deleted app. 

The remedy is to search for and delete the referring *.desktop files in 

~/.local/share/applications and
/usr/share/applications

But this recommendation is not a solution! - Users can't be expected to clean out application link files in hidden system folders.   

The solution should be to make the menu editor to delete these entries in the users home folder and hide those in the system folder from the application search in the kickoff menu. 

thx. p.
Comment 6 Danish Rehman 2024-02-28 11:25:20 UTC
Please fix this 🙏. Still the case in 2024.