I am writing an application in Vala (c compatible language) for which I need the icon theme that is currently installed.
I want to avoid using GTK + or Qt as a dependency.
I know that GTK + 3 has settings.ini and GTK + 2 has a .gtkrc-2.0 file, but according to this, these files are only backups in case XSettings Manager is not running.
I tried to find information about the XSettings manager and it seems that XSettings is just a specification that is implemented by desktop environments. The most popular version is probably Gnomes gnome-settings-daemon, but there are others like lxsettings-daemon (integrated into lxsession) in LXDE or xfsettingsd XFCE.
Now I need to figure out how to query the XSettings manager for the value of Net / IconThemeName .
I found this specification , but I do not understand it. (I have never worked with Xlib before)
Is this what I need?
To be clear: I do not want to implement the XSettings Manager specification, but I want to request the current implementation for the currently set icon theme.
Can someone please help me understand the specification ? This seems pretty confusing to me.
Or am I doing this completely wrong?
source
share