On 31/01/13 18:15, Michael Biebl wrote:
> Do you have gnome-settings-daemon running?
> What does
>  gsettings get org.gnome.desktop.interface gtk-theme
> say?
> Which desktop environment is this?
> 
> Michael
> 

I can confirm this bug also.

I'm my case I'm running XFCE desktop, and all GTK3 applications look horrible.

I tried to manually force the Adwaita theme on settings.ini but there is no way.

I have this configured:

$ cat ~/.config/gtk-3.0/settings.ini
[Settings]
gtk-theme-name = Adwaita
gtk-icon-theme-name = Adwaita
gtk-fallback-icon-theme = gnome


$ gsettings get org.gnome.desktop.interface gtk-theme
'Adwaita'


But gtk3 application will ignore this settings and will try to load an "Xfce" 
theme that
is the one I have defined on xfce4-settings-manager.


$ strace gnome-calculator 2>&1 |grep -Pi '(Adwa|themes|settings.ini)'
access("/usr/share/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No such file or 
directory)
access("/etc/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No such file or 
directory)
access("/etc/xdg/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No such file or 
directory)
access("/home/clopez/.config/gtk-3.0/settings.ini", F_OK) = 0
open("/home/clopez/.config/gtk-3.0/settings.ini", O_RDONLY) = 11
read(11, "[Settings]\ngtk-theme-name = Adwa"..., 4096) = 98
access("/home/clopez/.local/share/themes/Xfce/gtk-3.0/gtk.css", F_OK) = -1 
ENOENT (No such file or directory)
access("/home/clopez/.themes/Xfce/gtk-3.0/gtk.css", F_OK) = -1 ENOENT (No such 
file or directory)
access("/usr/share/themes/Xfce/gtk-3.0/gtk.css", F_OK) = -1 ENOENT (No such 
file or directory)
access("/usr/share/themes/Xfce/gtk-3.0/settings.ini", F_OK) = -1 ENOENT (No 
such file or directory)
read(12, "[Icon Theme]\nInherits=Adwaita\n", 4096) = 30
open("/home/clopez/.icons/Adwaita/cursors/xterm", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/home/clopez/.icons/Adwaita/index.theme", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/usr/share/icons/Adwaita/cursors/xterm", O_RDONLY) = 12




I have also tried to clean my environment of any variable that had an xfce 
string. It didn't help.



What at the end worked for me was to open xfce4-settings-manager and select 
Adwaita on the theme list.
This not only effectively changed the theme for the GTK+-3 applications, but 
for the whole desktop.


So, GTK+-3 is ignoring the gtk-3.0/settings.ini configuration. It only obeys 
the settings defined by the DE.



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to