You are not logged in.

#26 2012-01-03 03:05:00

kid7st
Member
Registered: 2012-01-03
Posts: 1

Re: QGtkStyle was unable to detect the current GTK+ theme.

dipesh.nomad wrote:
skull-y wrote:
pacman -S libgnomeui

That solves the problem with the style of qt-apps. Its the dependecie of glabels.

This works.

Yeah,This works for me,too!
Thank you!

Offline

#27 2012-03-05 13:17:51

simryang
Member
Registered: 2012-01-13
Posts: 2

Re: QGtkStyle was unable to detect the current GTK+ theme.

kid7st wrote:
dipesh.nomad wrote:
skull-y wrote:
pacman -S libgnomeui

That solves the problem with the style of qt-apps. Its the dependecie of glabels.

This works.

Yeah,This works for me,too!
Thank you!

not for me..

Offline

#28 2012-05-04 12:31:15

darkshines
Member
From: Bremen, Germany
Registered: 2012-05-04
Posts: 11

Re: QGtkStyle was unable to detect the current GTK+ theme.

cyrusza wrote:

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 big_smile

Thank you! This worked for me.


Unity for Arch! Check it out https://wiki.archlinux.org/index.php/unity

Offline

#29 2012-08-10 17:06:14

bennylb0
Member
From: Melbourne, Australia
Registered: 2010-05-21
Posts: 66

Re: QGtkStyle was unable to detect the current GTK+ theme.

Worked for me!

Offline

#30 2012-08-30 12:46:02

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: QGtkStyle was unable to detect the current GTK+ theme.

gconftool-2 --set --type string /desktop/gnome/interface/gtk_theme your-theme-name

This, alone, worked for me. I'm using Gnome 3 and although I have a GTK them compatible with GTK2 and GTK3 (Zukitwo), I'm running what looks like to be pure GTK3 apps and a few QT ones (e.g virtualbox). One has to remember to rerun the command if the GTK3 theme is changed, for consistency...


To know recursion, you must first know recursion.

Offline

#31 2012-10-27 08:19:12

epro
Member
From: Ukraine
Registered: 2012-08-24
Posts: 2

Re: QGtkStyle was unable to detect the current GTK+ theme.

simryang wrote:
kid7st wrote:
dipesh.nomad wrote:

This works.

Yeah,This works for me,too!
Thank you!

not for me..

This works for me big_smile thanks

Offline

#32 2012-11-11 12:39:09

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: QGtkStyle was unable to detect the current GTK+ theme.

cyrusza wrote:

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 big_smile

I had the same issue with Cinnamon 1.6 and VirtualBox which uses QT.

Using the above command for my default GTK theme Adwaita did the trick.

Thank you.

Offline

#33 2012-12-30 18:07:11

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: QGtkStyle was unable to detect the current GTK+ theme.

Just a small update.

gconftool-2 --set --type string /desktop/gnome/interface/gtk_theme your-theme-name

makes Virtualbox using the correct gtk theme but not the cursor or icon theme.

In order to set the correct icon theme run:

gconftool-2 --set --type string /desktop/gnome/interface/icon_theme your-theme-name

For the cursor theme another addition step is required.

First set the gconf value:

gconftool-2 --set --type string /desktop/gnome/peripherals/mouse/cursor_theme your-theme-name

Now create a folder 'default' in /usr/share/icons and add the following lines to a file called 'index.theme':

[Icon Theme]
Inherits=Adwaita

You are done. Virtualbox should now use the same icon and cursor theme.

Last edited by orschiro (2012-12-31 05:11:53)

Offline

#34 2013-06-26 22:11:50

brettski
Member
Registered: 2013-06-21
Posts: 18
Website

Re: QGtkStyle was unable to detect the current GTK+ theme.

darkshines wrote:
cyrusza wrote:

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 big_smile

Thank you! This worked for me.

This worked for me as well. Thanks!

Offline

#35 2013-07-06 07:18:58

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: QGtkStyle was unable to detect the current GTK+ theme.

i already had that line:

export GTK2_RC_FILES="$HOME/.gtkrc-2.0" &

in my xinitrc but it didn't work. well the culprit turned out to be the "&" in the end. removed that and now it works (again), on an openbox environment without any gtk3.
so check that before you go installing libgnomeui!


edit: weirdness! i just wanted to check if i can undo this, but i can't! i removed the line from xinitrc and rebooted just to be sure.
the var GTK2_RC_FILES is empty now, but qt apps (pkgbrowser, vlc) still use my current gtk style (i don't have and never had libgnomeui installed).
[the reason i tried is because qt4 isn't rendering pixel/bitmap fonts properly, so i would like it to use my gtk style, but a different font.]

Last edited by ondoho (2013-07-06 19:29:33)

Offline

#36 2022-11-30 21:16:59

mchenier
Member
Registered: 2017-08-26
Posts: 13

Re: QGtkStyle was unable to detect the current GTK+ theme.

Got the same problem when I tried to start a script and can't find a way to resolve it.

martin@archlinux ~/Téléchargements> ./Installe_Assistant_Telechargement.bash
QGtkStyle was unable to detect the current GTK+ theme

Well, after trying some program installation, I don't get the message, but the bash doesn't start. Nothing happen, maybe I should start another thread?

Last edited by mchenier (2022-12-01 00:29:58)

Offline

#37 2022-12-01 00:41:55

mchenier
Member
Registered: 2017-08-26
Posts: 13

Re: QGtkStyle was unable to detect the current GTK+ theme.

Well it start only in root. I think it's related to the program himself or still a problem of permission that I have since I installed Arch. Need to read a lot to understand Arch...

Offline

#38 2022-12-01 01:59:35

tekstryder
Member
Registered: 2013-02-14
Posts: 173

Re: QGtkStyle was unable to detect the current GTK+ theme.

mchenier wrote:

...maybe I should start another thread?

Yes

mchenier wrote:

Need to read a lot to understand Arch

Need to read a little to understand Forum.

You are necrobumping a DECADE-old thread.

Offline

#39 2022-12-01 09:01:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,170

Re: QGtkStyle was unable to detect the current GTK+ theme.

As mentioned it is quite unlikely this is the same underlying issue and your problem is likely related to this very specific program, whatever it is exactly, you might want to elaborate on that.

Closing this 10 year old thread.

Offline

Board footer

Powered by FluxBB