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

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
Z0K4
Posts: 31
Joined: 13. Sep 2011, 06:39
Location: Split, Croatia

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

Post 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
Last edited by Z0K4 on 16. Oct 2011, 11:19, edited 2 times in total.
Image
Ubuntu - African word for: "Slackware is too hard for me!"
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

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

Post by GJones »

1. If you haven't already, install libgnomeui.

2. Run qtconfig and change the theme from "Desktop" to "GTK."
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

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

Post 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! :)
Image
What really matters is where you are going, not where you come from.
djemos
Salix Warrior
Posts: 1466
Joined: 29. Dec 2009, 13:45
Location: Greece

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

Post 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.
User avatar
Z0K4
Posts: 31
Joined: 13. Sep 2011, 06:39
Location: Split, Croatia

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

Post 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 :)
Image
Ubuntu - African word for: "Slackware is too hard for me!"
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

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

Post 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
;)
Image
Help to make Slackware easier Donate to Salix
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

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

Post 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
Image
User avatar
Z0K4
Posts: 31
Joined: 13. Sep 2011, 06:39
Location: Split, Croatia

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

Post 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 ;)
Image
Ubuntu - African word for: "Slackware is too hard for me!"
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

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

Post 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?
Image
Help to make Slackware easier Donate to Salix
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

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

Post 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.
Image
Post Reply