Bug 443309

Summary: firefox looks ugly in kde 4 (gtk theme wrong)
Product: [Fedora] Fedora Reporter: Philipp N. <neo6238-redhat>
Component: kdebase-workspaceAssignee: Kevin Kofler <kevin>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9CC: ben.lewis, kevin, ltinkl, rdieter, than, tuju, tuxbrewr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.0.4-4.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 10:58:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
don't lost SystemGtkrc none

Description Philipp N. 2008-04-20 14:35:04 UTC
Description of problem:
Firefox looks really ugly, because the gtk theme is wrong or something.

Version-Release number of selected component (if applicable):
fedora 9 kde4 live cd

How reproducible:
install firefox and just look

Steps to Reproduce:
1. boot live cd
2. yum install firefox
3. firefox
  
Actual results:
http://img512.imageshack.us/img512/1756/snapshot1se8.png

Expected results:
similar to gnome fedora 9 or something

Additional info:
probably it is the gtk theme?!

Comment 1 Christopher Aillon 2008-04-20 14:45:45 UTC
Firefox just reads the system settings, so this definitely isn't a firefox bug.
 I'm guessing the KDE4 spin needs to somehow set the default GTK theme or
something to match what is used in the default GNOME spin or something?

Sending over to KDE for now, but this is probably a spins issue...  not sure who
gets that.

Comment 2 Rex Dieter 2008-04-20 16:24:37 UTC
"Firefox just reads the system settings", what exactly does that mean?
Shouldn't the default gtk2 theme "just work"?

I'll have to double-check whether this applies to all gtk2-based (themed) apps
or just firefox.

Fwiw, I see proper theming on my box, but I've got both kde-desktop and
gnome-desktops installed.  Which implies to my untrained eye, that the gtk2
default theme isn't being pulled in or used automatically for some reason.

Comment 3 Christopher Aillon 2008-04-20 19:05:07 UTC
Right.  It needs to get pulled in.  If not, then there's not much firefox can
do.  It can't guess what the theme should be.

Comment 4 Kevin Kofler 2008-04-20 19:56:21 UTC
The Nodoka theme is on the KDE Live spin, the problem appears to be that it 
doesn't get enabled if nothing starts gnome-settings-daemon. The problem is: I 
don't understand why, because Nodoka is set as the systemwide default theme 
in /etc/gtk-2.0/gtkrc.

Comment 5 Rex Dieter 2008-05-06 17:54:29 UTC
pong over to kind gtk2 folks to help determine why nodoka isn't working in the
absence of g-s-d or possibly missing dep.

Comment 6 Matthias Clasen 2008-05-07 00:20:15 UTC
isn't this because kde is setting GTK2_RC_FILES to point to some gtkrc file of
its own ?

Comment 7 Kevin Kofler 2008-05-07 00:25:49 UTC
It sets it to a list of files, /etc/gtk-2.0/gtkrc is first in that list.

Comment 8 Rex Dieter 2008-05-07 14:02:21 UTC
Ugh, this may have something to do with it (from kde-settings):
/usr/share/kde-settings/kde-profile/default/share/config/gtkrc-2.0
don't remember when/how that got there.

Comment 9 Rex Dieter 2008-05-07 16:49:08 UTC
OK, that's not it, did
rm -f /usr/share/kde-settings/kde-profile/default/share/config/gtkrc-2.0
rm -f ~/.gtkrc*

logout/login, can now reproduce.

next stop, login to gnome, kill gnome-settings-daemon, see what happens.

Comment 10 Rex Dieter 2008-05-07 17:43:19 UTC
Tried testing under gnome too, but darn sucker (re)starts gnome-settings-daemon
every time I tried to kill it.

but... upon looking further, it *is* at least partly kde's fault:
$ set | grep gtk
GTK2_RC_FILES=/home/rdieter1/.gtkrc-2.0-kde4:/home/rdieter1/.kde/share/config/gtkrc-2.0
GTK_RC_FILES=:/home/rdieter1/.kde/share/config/gtkrc

No
/etc/gtk-2.0/gtkrc
in there.

Comment 11 Rex Dieter 2008-05-07 17:44:10 UTC
Oh, and appending /etc/gtk-2.0/gtkrc to GTK2_RC_FILES did the trick.

Comment 12 Kevin Kofler 2008-05-07 19:23:06 UTC
OK, then let's take the bug again. This is a KDE 4 regression, in KDE 3 the 
file is there. The code to add the file is still there in KDE 4 though, we'll 
have to look at what changed so we can revert it.

Comment 13 Kevin Kofler 2008-05-07 19:28:01 UTC
By "the file is there", I mean it's listed in GTK2_RC_FILES.

Comment 14 Rex Dieter 2008-05-08 12:50:21 UTC
related upstream report: http://bugs.kde.org/show_bug.cgi?id=146779

Comment 15 Kevin Kofler 2008-05-08 13:30:21 UTC
Looking into it, if I come up with a patch, I'll submit it to the upstream bug 
report too.

Comment 16 Kevin Kofler 2008-05-08 15:03:49 UTC
Should be fixed in kdebase-workspace-4.0.4-2.fc9 which is currently building. I 
wrote the patch, Rex tested and built it, that's teamwork. :-)

http://koji.fedoraproject.org/koji/buildinfo?buildID=48468

Comment 17 Rex Dieter 2008-05-08 15:03:57 UTC
Created attachment 304870 [details]
don't lost SystemGtkrc

Here's a patch we tested to work, to ensure that systemGtkrc doesn't get lost. 
Not sure exactly why the old code didn't work (it's almost the same as the kde3
versions that were ok).

Comment 18 Rex Dieter 2008-05-09 17:15:07 UTC
patch comitted upstream.

Comment 19 Fedora Update System 2008-05-13 15:22:59 UTC
kdebase-4.0.4-2.fc9, kdeaccessibility-4.0.4-1.fc9, kde-l10n-4.0.4-1.fc9, kdetoys-4.0.4-1.fc9, kdebindings-4.0.4-1.fc9, kdenetwork-4.0.4-2.fc9, kdegraphics-4.0.4-1.fc9, kdeartwork-4.0.4-1.fc9, kdesdk-4.0.4-1.fc9, kdegames-4.0.4-1.fc9, kdebase-workspace-4.0.4-4.fc9, kdeutils-4.0.4-1.fc9, kdeedu-4.0.4-2.fc9, kdebase-runtime-4.0.4-1.fc9, kdemultimedia-4.0.4-1.fc9, kdelibs-4.0.4-1.fc9, kdeadmin-4.0.4-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update kdebase kdeaccessibility kde-l10n kdetoys kdebindings kdenetwork kdegraphics kdeartwork kdesdk kdegames kdebase-workspace kdeutils kdeedu kdebase-runtime kdemultimedia kdelibs kdeadmin'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-3664

Comment 20 Bug Zapper 2008-05-14 09:47:22 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 21 Dean Mander 2008-05-16 20:04:10 UTC
Update to *-4.0.4 fixes the problem for me.




Comment 22 Fedora Update System 2008-05-21 10:58:04 UTC
kdebase-workspace-4.0.4-4.fc9, kdebase-4.0.4-2.fc9, kde-l10n-4.0.4-1.fc9, kdesdk-4.0.4-2.fc9, kdemultimedia-4.0.4-2.fc9, kdelibs-4.0.4-4.fc9, kdeedu-4.0.4-2.fc9, kdebase-runtime-4.0.4-1.fc9, kdepimlibs-4.0.4-1.fc9, kdenetwork-4.0.4-2.fc9, kdegraphics-4.0.4-1.fc9, kdeaccessibility-4.0.4-1.fc9, kdeartwork-4.0.4-1.fc9, kdeutils-4.0.4-1.fc9, kdebindings-4.0.4-1.fc9, kdetoys-4.0.4-1.fc9, kdegames-4.0.4-2.fc9, kdeadmin-4.0.4-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.