XSettings request manager for icon

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?

+4
source share
2 answers

libxsettings-client, C XSettings. API Vala, , , (< 70 ). x11.vapi, Vala. API , .

+2

dump_xsettings xsettingsd ( , libxsettings-client ). , gnome-settings-daemon un-settings-daemon dbus, - xsettings, _XSETTINGS_SETTINGS _XSETTINGS_S0 ( libxsettings). , , , ( , )

+2

Source: https://habr.com/ru/post/1544045/


All Articles