How can I get the full path to the icon name file?

How can I get the full file path from the icon name in GNOME?

+7
source share
2 answers
import gtk icon_theme = gtk.icon_theme_get_default() icon_info = icon_theme.lookup_icon("my-icon-name", 48, 0) print icon_info.get_filename() 
+11
source

Translation for Python 3:

 from gi.repository import Gtk icon_theme = Gtk.IconTheme.get_default() icon_info = icon_theme.lookup_icon("my-icon-name", 48, 0) print(icon_info.get_filename()) 
+8
source

All Articles