Article From:https://www.cnblogs.com/easyxu/p/9969029.html

Icon information is generally in the

/usr/share/applications

perhaps

~/.local/share/applications(User independent configuration is basically here)

First, we use the following principles to searchKeywordForm to complete this problem.

Linux finds files with keywords under folders

find / -name '*' | xargs grep 'route'

Find the file containing the keyword route under the root folder and list the file name and the line where the route is located.

find / -name '*.txt' | xargs grep 'route'

Find a file with the suffix txt and the keyword route under the root folder, listing the file name and the line where the route is located.

Find and delete useless icons

find / -name '*.desktop' | xargs grep 'Keyword '

It lists the path where the icon is located and deletes the icon when entering the path.

Leave a Reply

Your email address will not be published. Required fields are marked *