You are not logged in.
Watching the stdout from qtconfig, when I select "GTK+" from the themes, I see:
[max@killterm3 ~]$ qtconfig
QGtkStyle was unable to detect the current GTK+ theme.
Why? The theme is also incorrectly recognized.
This is pacman -Q:
http://codepad.org/EAspWGal
I'm also using the Aurora GTK+ theme.
Offline
Happened to me too. Turned out there were some missing environmental variables to be set.
Putting
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
in my .xinit solved it.
Hope it helps!
Last edited by txus (2010-06-15 20:08:02)
Offline
hmm, I put this in .bashrc and logged out and back in but it didn't do anything. Then, I noticed that I didn't have a .gtkrc-2.0 file, so I installed gtk-theme-switch2 and made one, but I still get the same error as above.
Offline
Strange... I did just the same, but with lxappearance, and it worked. Assuming you did log out+log in after you created the gtkrc file, I don't know how to help you further, sorry
Offline
You need to add
gtk-theme-name="yourtheme"
in gtkrc
Last edited by slumslayer (2010-06-17 13:28:51)
Offline
Bringing this thread up from the dead because I'm seeing these problems on a new machine I tried creating a .gtkrc-2.0 file without luck. Still am seeing the error.
Offline
did you also try: export GTK2_RC_FILES="$HOME/.gtkrc-2.0"? This always fixed it for me.
Offline
did you also try: export GTK2_RC_FILES="$HOME/.gtkrc-2.0"? This always fixed it for me.
Sure did, and it didn't help
Offline
I got the same error message because my root partition was almost full...
don't drink unwashed fruit juice.
i never make predictions, especially about the future.
Offline
I same problem here ... qt 4.71 have a bug?
I have never bought on ebay, the macbook I do not like, I do not need facebook or myspace or secondlife
I am not a nerd or lamer or troll or geek or hacker or cracker
and I have never voted to elect berlusconi
Offline
LOL. If I install glabels the problem disappear. Glabels, or another dependecies, correct qgtkstyle ...
I have never bought on ebay, the macbook I do not like, I do not need facebook or myspace or secondlife
I am not a nerd or lamer or troll or geek or hacker or cracker
and I have never voted to elect berlusconi
Offline
Does the problem return if you uninstall Glabels?
Offline
I reinstalled arch yesterday (switched to x64) and came out with the same issue.
Following from ugaciaka's comment about glabels I installed libgnomeui (which is a dependency of glabels) and that fixed the issue after a relog. I then pacman -Rd'ed libgnomeui to see if one of it's several dependencies fixed it and the problem didn't return. So I reinstalled libgnomeui and pacman -Rnsc'ed it to restore the system to it's pre-libgnomeui state and the problem has still not returned.
I do, however, get a new error from qtconfig:
(<unknown>:15835): Gtk-WARNING **: Unable to locate theme engine in module_pah: "mist",
As I said, theming of qt apps works fine though. Better than before the reinstall, actually, as virtualbox is now themed, whereas it always wanted to do it's own thing before.
edit:
Installing gtk-engines solved the "Unable to locate theme engine in module_pah: "mist"" error, as per this thread.
Last edited by hurleyef (2011-01-01 16:41:47)
Offline
pacman -S libgnomeui
That solves the problem with the style of qt-apps. Its the dependecie of glabels.
Offline
Hi,
Is there any other option? libgnomeui brings 16 other packages as dependencies, that's just sick.
Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox
Offline
Old thread, same topic = bump.
Anyone figure out what this is? I'm installing libgnomeui atm, but like vi3dr0 said, that's a lot of dependencies :s
Offline
For me exporting
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
always is sufficient, the thing is, you must export it before your DE is started, so .bashrc will never work. In my case i added it to .xinitrc like this
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
openbox-session
.
I hope this will help, and forgive me my poor english.
Offline
Or put it in /etc/profile.d, basically the same .
And i found this is a really weird thing.
I'm on xfce and i expect the xfce settings daemon to take care of those stuff. But if that file doesn't exist Qt applications stay with the default Qt theme.
So i create that gtkrc2 file and export it. Then i launch a Qt application and it is themed as i expect. Problem solved... Or so you would think.
So, in my expectation i think that the DE settings daemon should take care of those stuff and it really does, because if i go to the appearence settings and change the theme all Qt applications get it.
Now we get to the weird conclusion that Qt applications don't really get the theme from the gtkrc2 file, they just require it for nothing.
At least if i simply export the file with this line: gtk-theme-name = "hello world" it simply works.
Well i call this weird and stupid.
edit: this happens because i don't have gconf installed nor want it just for this. I hate things that pollute my $HOME
Last edited by Diaz (2011-06-07 11:09:39)
Offline
For me worked it also with this steps on a Gnome 3.0 install:
- installed libgnomeui (with all its dependencies)
- started a QT4 program (VLC)
- uninstalled libgnomeui (with all its dependencies)
Offline
Just install "gconf", is so less dependencies, and worked to me. Since, gconf is used to tell what is your theme to QT: http://bugreports.qt.nokia.com/browse/QTBUG-5545
Offline
Installing gconf alone doesn't work if you don't have gnome. In that case you need to set theme name with this command:
gconftool-2 --set --type string /desktop/gnome/interface/gtk_theme your-theme-name
Change "your-theme-name" with your theme name
Last edited by cyrusza (2011-06-12 10:58:53)
Offline
I had the same error:
QGtkStyle was unable to detect the current GTK+ theme.
During printer driver instalation. And the thing was that root account didn't have all necessery files in home direcotry.
I just login in gnome as roor user (to create all files for gtk) and then all works.
Offline
Curiously, I fixed this by selecting "Cleanlooks" as GUI style in qtconfig. Any other choice gives the error. I use XFCE. No need to touch any file (I haven't gnome packages, neither .gtkrc-2.0)
Offline
pacman -S libgnomeui
That solves the problem with the style of qt-apps. Its the dependecie of glabels.
This works.
Offline
skull-y wrote:pacman -S libgnomeui
That solves the problem with the style of qt-apps. Its the dependecie of glabels.
This works.
Thank you!
Offline