8

I changed the icon theme in Ubuntu 12.04, but it doesn't affect Qt-applications. They have the default theme.

For KDE applications the icon theme can be changed with the systemsettings package. This, however, does not work for some non-KDE QT applications.

Is there a setting I can change to make all QT applications follow suit?

2
  • @UriHerrera The asker here says system settings doesn't work for him.
    – Seth
    May 19, 2013 at 18:35
  • @Seth unfortunately the OP doesn't say where he/she installed the icons. Also Some Qt applications (such as Skype) seem to have their some icons within the binary. May 19, 2013 at 18:48

1 Answer 1

6

Gconf and Dconf settings

A lot of QT applications will query GNOME's configuration databases for the icon theme settings. Under some circumstances there might be a discrepancy between the icon theme in use and the corresponding GNOME setting.

So to change the icons you might have to set the corresponding Gconf and Dconf keys first. You can do so with the following commands (replace Faenza-Dark with your icon theme of choice):

gsettings set org.gnome.desktop.interface icon-theme Faenza-Dark

and

gconftool-2 --type=string --set "/desktop/gnome/interface/icon_theme" "Faenza-Dark"

It might take a relog to see the changes.

The theme names correspond with their basename in the filesystem. It doesn't matter where the theme is located. Be it /usr/share/icons/AskUbuntu, ~/.icons/AskUbuntu or ~/.local/share/icons/AskUbuntu, in each case the Gconf/Dconf name will be AskUbuntu.

Note

This fix will not work for all QT applications out there. Some, e.g. Clementine, have turned out to be very resilient and - as much as you might try - just won't change their icon theme. That's likely due to issues with how these applications detect the system theme. In other cases (e.g. Skype) the icons might be hard-coded into the binary and impossible to change.

References

https://github.com/linuxmint/Cinnamon/issues/1793

http://forums.fedoraforum.org/showpost.php?p=1453006&postcount=19

http://slackbuilds.org/repository/11.0/desktop/tango-icon-theme/

How to change desktop theme periodically

Not the answer you're looking for? Browse other questions tagged .