Remove 'phantom' application from search

I have an application in my search menu that doesn’t appear in the KDE menu editor and isn’t in .local/share/applications. Terminal output says the link is pointing at where the application was installed,

/Games/ubisoft-connect/drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe

but that directory is gone, uninstalled. How do I remove this remnant? I’ve tried restarting the machine and restarting the plasma environment, neither helped/fixed.

hi, welcome.

sometimes packages leave remnants when they are not configured properly, so at that point it becomes a manual process to clean up.

what did you input to the terminal to get this output?

also krunner uses the baloo search index which may still contain a reference to that

in settings > file search

do you have file indexing enabled (default on some distros)?

if so you can disable it and you should also maybe not index that folder which you can do by “adding” it and then setting it to not indexed.

balooctl disable or balooctl6 disable should also turn off the file index feature.

Might be a bit of a brute force solution, but you can use
find / -type f -name "*.desktop" 2>/dev/null
to find all the shortcut files on the system and then look through the list

Thanks for the string, found and deleted.

1 Like