Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2503  / 2 Years ago, sat, march 12, 2022, 8:36:56

There are several related questions, but I found none that really answered this detail:



Where is the reference to the current icon theme stored?



Since the icon theme can be changed, hence so too the path to its folder, it must be stored somewhere. I'm making an application and I want it to draw its own icons from the icon theme currently in use. I've seen answers showing how to retrieve the path using Python and Gtk, but I am using PyQt and would like to avoid importing Gtk as well.



Is there a configuration file somewhere holding the current icon theme's name or path? Or do you know a PyQt means to do that?


More From » python

 Answers
3

A reference to the current icon theme can be found in gconf-editor at:



desktop > gnome > interface > icon_theme



enter image description here



You can alternatively read directly ~/.gconf/desktop/gnome/interface$ cat %gconf.xml file.



Unfortunately, this does not provide a path to the relevant icon theme. I'll check how this setting relates to the path and i'll let you know ;-)


[#43770] Monday, March 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mocipe

Total Points: 161
Total Questions: 106
Total Answers: 118

Location: Cambodia
Member since Thu, Oct 7, 2021
3 Years ago
;