[solved] Qt apps do not respect GTK settings

08-13  Source: Network gathering  Views:3 

Advertisement
Hello,
Qt apps such as Virtualbox do not respect my GTK settings. The font should be Noto Sans and the icon theme should be Faenza.
Here is a comparison between Virtualbox and Nemo File Manager: http://i.imgur.com/oxWXW2w.png
My settings:
In qtconfig-qt4 I set Select GUI Style: GTK+.
~ $ cat .config/Trolltech.conf
style=GTK+
doubleClickInterval=400
cursorFlashTime=1000
wheelScrollLines=3
resolveSymlinks=false
globalStrut\width=0
globalStrut\height=0
useRtlExtensions=false
XIMInputStyle=On The Spot
DefaultInputMethod=xim
audiosink=Auto
videomode=Auto
GUIEffects=none
~ $ cat .gtkrc-2.0
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
gtk-theme-name="Adwaita"
gtk-icon-theme-name="Faenza"
gtk-font-name="Noto Sans 9"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=0
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"
gtk-xft-rgba="rgb"
include "/home/orschiro/.gtkrc-2.0.mine"
In .xinitrc:
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
gconf settings:
~ $ gconftool-2 -g /desktop/gnome/interface/gtk_theme
Adwaita
~ $ gconftool-2 -g /desktop/gnome/interface/icon_theme
Faenza
Last edited by orschiro (2013-12-25 13:03:23)
Thanks ooo.
Via qtconfig I can set the GTK theme (as per use GTK settings) and the font.
However, what I cannot change is the used icon set. Although gconftool-2 -g /desktop/gnome/interface/icon_theme is set to Faenza it is not set for Qt apps.
I assume this has to do with me running Openbox and somehow missing a required gconf component being launched.
Is someone successfully running a WM configuration with the correct icon set for Qt apps?
Related articles