<div dir="ltr"><div style="font-size:12.8px">Absolutely agree, we don't have easy way to know the icon theme name, and this makes the <a href="https://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html" target="_blank">Icon Theme Specification</a> is almost meaningless. We need a simple way to get the current icon theme name.<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">There are 2 proposals, <a href="https://specifications.freedesktop.org/xsettings-spec/xsettings-spec-0.5.html" target="_blank">XSETTINGS</a> and <a href="https://www.freedesktop.org/wiki/Specifications/XSettingsRegistry/" target="_blank">XSettingsRegistry</a>. But XSETTINGS does not work:</div><div style="font-size:12.8px"><div>  1. It is difficult to implement in the low-level languages like C or C++.</div><div>  2. It is impossible to implement it in a scripting language such as bash. </div><div>  3. It cannot be used in Wayland.</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>But using a single file has a problem. One DE will overwrite the settings of another. My suggestion is. </div><div><br></div><div>DE defines a XDG_CONFIG_PREFIX variable, and settings are read from the file ${<span style="font-size:medium;color:rgb(0,0,0);font-family:monospace">$XDG_CONFIG_DIRS</span>}/{XDG_CONFI<wbr>G_PREFIX}xdg-settings.ini</div><div>It's similar to the approach of the <a href="https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html" target="_blank">menu-spec </a> specifications.</div><div><br></div><div>This will allow different DE have different settings in the different configuration files.</div><div><br></div><div>Additionally I propose to use a INI-like config file format. This has the following advantages:</div><div>  1. The format is familiar to programmers.</div><div>  2. It allows you to have some grouping of values.</div><div>  3. Because desktop-files are INI, the code implementing your specifications already have a parser for that format.</div></div><span class="gmail-im" style="font-size:12.8px"><div><br></div><div>> Btw. why didn't you suggest dbus?</div></span><div style="font-size:12.8px">IMHO the specification should be as simple as possible. In any case, we can write dbus service for reading and changing the values. But the approach should be maximized simple. Otherwise programmers will not use it.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-29 0:57 GMT+03:00 Роман Чистоходов <span dir="ltr"><<a href="mailto:freeslave93@gmail.com" target="_blank">freeslave93@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Icon Theme Specification mentions "current theme", but does not elaborate on what it is and how it can be detected, making it very hard for authors of third-party applications or GUI toolkits to detect this "current theme" for correct icon resolving (it becomes much like guessing game)<div><br><div>It seems like detection of the current icon theme is DE-dependent right now. Would be useful to have specification that defines how desktop environments should store the name of current icon theme, how applications can find it and how applications can receive icon theme updates (e.g. user changes icon theme and applications want to reload icons to reflect this change).</div><div><br></div><div>Super simple solution is to write the name of icon theme (and nothing else) to  $XDG_CONFIG_HOME/icon-theme-<wbr>name.txt file whenever DE is starting or setting different icon theme. Applications may read file and watch it for changes (using platform-dependent API).</div></div><div><br></div><div>Until this is not implemented by desktop environments, sensible fallback may be specified for each popular DE.</div></div>
<br>______________________________<wbr>_________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xdg" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/xdg</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Alexander.</div>
</div>