Page 1 of 2

[Solved] Force vlc to use gtk theme, and not the qt?

Posted: 15. Oct 2011, 07:52
by Z0K4
Hi guys! Recently, I've installed vlc and noticed that it uses qt theme even though I run the 32 bit Xfce Salix OS! Does anyone know how to force vlc to use gtk theme? This is not urgent so only reply if you have a spear time! ;) Cheers

Re: (not urgent) Force vlc to use gtk theme, and not the qt?

Posted: 15. Oct 2011, 21:39
by GJones
1. If you haven't already, install libgnomeui.

2. Run qtconfig and change the theme from "Desktop" to "GTK."

Re: (not urgent) Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 05:24
by Akuna
GJones wrote:1. If you haven't already, install libgnomeui.

2. Run qtconfig and change the theme from "Desktop" to "GTK."
Very useful tip, Tx! :)

Re: (not urgent) Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 08:24
by djemos
If you haven't already, install libgnomeui.

2. Run qtconfig and change the theme from "Desktop" to "GTK."
I run salix-kde. I dont see any difference even if i run qtconfig having installed first libgnomeui or run qtconfig without libgnomeui installed, and choose GTK from "Desktop".
I think libgnomeui is not needed. At least in salix-kde.

Re: (not urgent) Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 11:17
by Z0K4
GJones wrote:1. If you haven't already, install libgnomeui.

2. Run qtconfig and change the theme from "Desktop" to "GTK."
Thank you GJones! Installing libgnomeui solved the problem!
Thanks to all of you for your replies! Cheers :)

Re: [Solved] Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 12:16
by zAchAry
Instead of installing libgnomeui, you can also use:
pwatk wrote:Try this:

Code: Select all

$ export GTK2_RC_FILES="$HOME/.gtkrc-2.0" ; sqlitebrowser
or this:

Code: Select all

$ GTK2_RC_FILES="$HOME/.gtkrc-2.0" sqlitebrowser
or you could create a script in /etc/profile.d, logout and back in again then try launching sqlitebrowser:

Code: Select all

# echo 'export GTK2_RC_FILES="$HOME/.gtkrc-2.0"' >> /etc/profile.d/qgtkstyle.sh
# chmod 755 /etc/profile.d/qgtkstyle.sh
$ sqlitebrowser
;)

Re: [Solved] Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 16:01
by pwatk
Um, you might want to replace all instances of sqlitebrowser with vlc though ;).

So you could try this:

Code: Select all

$ export GTK2_RC_FILES="$HOME/.gtkrc-2.0" ; vlc
or this:

Code: Select all

$ GTK2_RC_FILES="$HOME/.gtkrc-2.0" vlc
or you could create a script in /etc/profile.d, logout and back in again then try launching vlc:

Code: Select all

# echo 'export GTK2_RC_FILES="$HOME/.gtkrc-2.0"' >> /etc/profile.d/qgtkstyle.sh
# chmod 755 /etc/profile.d/qgtkstyle.sh
$ vlc

Re: [Solved] Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 16:24
by Z0K4
So, just out of curiosity I've uninstalled libgnomeui and tried the script... and it works! Thank you guys for your replies. Salix community, and Linux generally, is awesome! Cheers ;)

Re: [Solved] Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 18:20
by zAchAry
:-)

@pwatk I have forgot to ask this before: Why this script (probably it) is canceling the Gtk theme configuration of Root, which is different than normal user in this case, which was made with LXAppearance?

Re: [Solved] Force vlc to use gtk theme, and not the qt?

Posted: 16. Oct 2011, 19:32
by pwatk
Honestly, I have no idea. What's in your /root/.gtkrc-2.0 file? If it's empty or none existent then this could be causing a problem.