couldn't remove a blank and dead link/icon from Dash search

Asked by Shihao Xu

down vote
favorite
enter image description here

I installed Pycharm-community in a wrong way

sudo ./pycharm.sh
now I remove its entire program directory and ~/.Pycharm50 config directory.

The problem is a invalid icon still appears in the Dash search result

I already tried

ls ~/.local/share/applications | grep pycharm
sudo ls /usr/share/applications | grep pycharm
but I got nothing.

http://askubuntu.com/questions/724948/how-to-remove-a-blank-and-dead-link-icon-from-dash-search?noredirect=1#comment1073136_724948

/home/x/.gnome/apps/jetbrains-pycharm-ce.desktop is found and removed

I also rebooted but it is still there.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Try:

grep -i pycharm /usr/share/applications/*

Running late with sudo is nonsense. Your user can read the data. How do you think you get the icons in Dash? Think about it instead of wildly adding sudo to commands when you don't get what you expect.

The files in /usr/share/applications define the files using configuration lines in the files. The filename has no bearing here. You could rename them all to random letters and numbers and Dash would still work as it does now.

Revision history for this message
Shihao Xu (xsh6528) said :
#2

Thanks! Very helpful for Linux Beginner like me !