<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-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>