I'm on Ubuntu 20.04. I ran
apropos icon
in the terminal; here are the more promising results:
File::IconTheme (3pm) - find icon directories
xdg-desktop-icon (1) - command line tool for (un)installing icons to the desktop
xdg-icon-resource (1) - command line tool for (un)installing icon resources
So I tried
man File::IconTheme
and based on the info there, I wrote this short perl script and saved it as icons.perl
:
#!/usr/bin/perl
print "icon paths:\n";
use File::IconTheme qw(xdg_icon_theme_search_dirs);
print join "\n", xdg_icon_theme_search_dirs, "\n";
print "user icon directory:\n";
use File::BaseDir qw(data_dirs);
print scalar data_dirs('icons');
print "\n"
Then back in the terminal, I ran
perl icons.perl
which on my system yields:
icon paths:
/home/user/.local/share/icons
/var/lib/flatpak/exports/share/icons
/var/lib/flatpak/exports/share/icons
/usr/share/icons
/var/lib/snapd/desktop/icons
/usr/share/pixmaps
user icon directory:
/home/user/.local/share/icons
Not sure if this answers your question, but maybe it points you in a better direction. I would run apropos icon
and see if you find anything else useful.