How to find a .desktop file for a given gnome search icon
I would do this by using the following command:
grep -r "Name.*=Settings" --include="*.desktop" --exclude-dir=boot,dev,proc,run,snap,sys / 2> /dev/null
where:
-
grep -r "Name.*=Settings"
- recursively finds needed line with displayed Settings word on icon; -
--include="*.desktop"
- instructs grep to search only inside desktop-files; -
--exclude-dir=boot,dev,proc,run,snap,sys
- excludes directories from search; -
/
- means to start search in the top directory; -
2> /dev/null
- sends all errors to/dev/null
to hide them.