You are not logged in.

#1 2008-03-25 19:22:43

rocktorrentz
Member
From: Southampton, England
Registered: 2007-08-05
Posts: 141

Can't get GTK apps to change icon theme in KDE

I am using kde and have changed my kde icon theme to tango but can't get firefox 3 or other gtk apps to do the same. Here is the output of export | grep gtk:

export | grep gtk
declare -x GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/sam/.gtkrc-2.0:/home/sam/.kde/share/config/gtkrc-2.0"
declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/sam/.gtkrc:/home/sam/.kde/share/config/gtkrc"

and the contents of those files:

cat /etc/gtk-2.0/gtkrc
gtk-fallback-icon-theme = "Tango"

cat /etc/gtk/gtkrc
cat: /etc/gtk/gtkrc: No such file or directory

cat /home/sam/.gtkrc-2.0
gtk-icon-theme-name="Tango"
gtk-theme-name="Clearlooks"

cat /home/sam/.gtkrc
gtk-icon-theme-name="Tango"
gtk-theme-name="Clearlooks"

cat /home/sam/.kde/share/config/gtkrc-2.0
cat: /home/sam/.kde/share/config/gtkrc-2.0: No such file or directory

cat /home/sam/.kde/share/config/gtkrc
cat: /home/sam/.kde/share/config/gtkrc: No such file or directory

Despite these settings, my gtk apps continue to use the gnome icon theme.

Offline

#2 2008-05-20 20:23:44

baghera
Member
Registered: 2007-08-26
Posts: 19

Re: Can't get GTK apps to change icon theme in KDE

I managed to get firefox3 using Oxygen-Refit icon theme simply copying the folder in /opt/kde/share/icons and adding

gtk-icon-theme-name="Oxygen-Refit"

in /home/user/.gtkrc-2.0-kde.

Let me now if it works for you! bye!

Offline

#3 2009-12-19 00:03:03

hsa2
Member
From: Turkey
Registered: 2008-05-26
Posts: 46
Website

Re: Can't get GTK apps to change icon theme in KDE

I tried and it didn't work.

Offline

#4 2009-12-19 14:55:03

augegr
Member
Registered: 2007-10-03
Posts: 36

Re: Can't get GTK apps to change icon theme in KDE

Copy the icon theme folder to /usr/share/icons
(ex. if your icon theme folder's name is Oxygen-Refit, it should be at /usr/share/icons/Oxygen-Refit)
Then edit ~/.gtkrc-2.0-kde and add the line baghera suggested. It works here.

Note that you need to do this to .gtkrc-2.0 (yes, thats without -kde) too if you don't use gtk-qt-engine to change gtk themes.

Also note that every time you change the gtk theme (either via systemsettings or via 3rd party utility) this line is autoremoved from the corresponding file(s).

Finally, make sure you close the gtk app you want the change to be shown and reopen it. All newly opened gtk apps should show the change.

Offline

Board footer

Powered by FluxBB