
[Solved] Force vlc to use gtk theme, and not the qt?
[Solved] Force vlc to use gtk theme, and not the qt?
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

Last edited by Z0K4 on 16. Oct 2011, 11:19, edited 2 times in total.

Ubuntu - African word for: "Slackware is too hard for me!"
Re: (not urgent) Force vlc to use gtk theme, and not the qt?
1. If you haven't already, install libgnomeui.
2. Run qtconfig and change the theme from "Desktop" to "GTK."
2. Run qtconfig and change the theme from "Desktop" to "GTK."
Re: (not urgent) Force vlc to use gtk theme, and not the qt?
Very useful tip, Tx!GJones wrote:1. If you haven't already, install libgnomeui.
2. Run qtconfig and change the theme from "Desktop" to "GTK."


What really matters is where you are going, not where you come from.
Re: (not urgent) Force vlc to use gtk theme, and not the qt?
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".If you haven't already, install libgnomeui.
2. Run qtconfig and change the theme from "Desktop" to "GTK."
I think libgnomeui is not needed. At least in salix-kde.
Re: (not urgent) Force vlc to use gtk theme, and not the qt?
Thank you GJones! Installing libgnomeui solved the problem!GJones wrote:1. If you haven't already, install libgnomeui.
2. Run qtconfig and change the theme from "Desktop" to "GTK."
Thanks to all of you for your replies! Cheers


Ubuntu - African word for: "Slackware is too hard for me!"
Re: [Solved] Force vlc to use gtk theme, and not the qt?
Instead of installing libgnomeui, you can also use:
pwatk wrote:Try this:or this:Code: Select all
$ export 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
$ GTK2_RC_FILES="$HOME/.gtkrc-2.0" 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?
Um, you might want to replace all instances of sqlitebrowser with vlc though
.
So you could try this:or this:
or you could create a script in /etc/profile.d, logout and back in again then try launching vlc:

So you could try this:
Code: Select all
$ export GTK2_RC_FILES="$HOME/.gtkrc-2.0" ; vlc
Code: Select all
$ GTK2_RC_FILES="$HOME/.gtkrc-2.0" 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?
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 


Ubuntu - African word for: "Slackware is too hard for me!"
Re: [Solved] Force vlc to use gtk theme, and not the qt?

@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?
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.