I uninstalled Okular in Ubuntu 18.04 but its icon still persists in Show Applications (not the usual icon however, but a generic one, see screenshot below).

I have checked ~/.local/share/applications and /usr/share/applications for a .desktop file, but I don't find any there that belong to Okular.

I have tried all the following commands with no success:

sudo apt remove okular
sudo apt remove --auto-remove okular
sudo apt purge okular
sudo apt purge --auto-remove okular

How can I remove the Okular icon from the Show Applications menu??

See the screenshot:


  • So far only Okular... I click the icon and nothing happens – DaniCee Dec 13 '18 at 11:53
  • Restart Shell, or log out and back in, or eventually your computer before concluding it persists in your application menu. Yet, normally, it should be gone after uninstalling the app. – vanadium Dec 13 '18 at 12:41
  • I have restarted a million times and the icon is still there – DaniCee Dec 13 '18 at 13:13

I'm going to assume you installed okular from Ubuntu Software. In that case the 1st listed is a snap version & likely what you installed.

All kde snaps suffer from the same uninstall flaw where the .desktop file is not removed. You will have to do so manually as root. The location of snap's .desktop files is,


The probable name of the file is okular_org.kde.okular.desktop

You can browse there to confirm it's existence, to get the file name one easy way is to DnD the file into a terminal.

So here the command to remove is

sudo rm /var/lib/snapd/desktop/applications/okular_org.kde.okular.desktop

This highlights one of the issues with snaps, many times one has to go far out of there way to report a bug. In this case, see https://forum.snapcraft.io/t/kde-snaps-flaw/8977. You'd think the KDE snap dev's would have noticed this as it's been happening for quite some time now..

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.