Bug 146779 - starting gtk apps from within kde forces default gtk engine
Summary: starting gtk apps from within kde forces default gtk engine
Status: CLOSED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-14 12:46 UTC by Alexander Jenisch
Modified: 2009-01-02 22:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
don't lose systemGtkrc (1.03 KB, patch)
2008-05-08 17:02 UTC, Rex Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Jenisch 2007-06-14 12:46:39 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Unlisted Binary Package
Compiler:          gcc 4.2.0 i686 optimized
OS:                Linux

when starting a gtk application from within kde (menus, traybar, icons) it will use the default (ugly) gtk theme. when starting the same app from a terminal, it will use the theme engine, given to it (e.g. via switch).
Comment 1 Sadysta 2008-01-16 23:17:14 UTC
I have this behaviour in KDE 4 from SVN.
Comment 2 Ivan Wong 2008-01-18 19:36:54 UTC
You can try a workaround here:

http://www.kde-forum.org/thread.php?threadid=18141
Comment 3 Sadysta 2008-01-18 21:34:52 UTC
It doesn't help, KDE4 overwrites it on restart. I tried setting file attribute +i and changing permissions but KDE4 still must have read/write access to ~/.kde/share/config directory so it just DELETES the file and recreates it!!! A major flaw. Why not leave GTK apps alone if not do it properly.
Comment 4 Mikko C. 2008-02-08 14:13:10 UTC
Same problem here.
I created 2 "scripts" (for Firefox and Thunderbird) and saved them on the desktop, so I don't need to run the commands from a terminal.

If I start gtk apps from the menu, I get the ugly GTK default theme.
Comment 5 Yves Glodt 2008-05-08 14:41:39 UTC
This blog entry describes as well what this bug consists of:
http://vizzzion.org/?blogentry=814
Comment 6 Rex Dieter 2008-05-08 14:50:07 UTC
confirmed, see also related downstream report:
https://bugzilla.redhat.com/show_bug.cgi?id=443309
Comment 7 Rex Dieter 2008-05-08 17:02:46 UTC
Created attachment 24672 [details]
don't lose 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 8 Kevin Kofler 2008-05-09 15:33:38 UTC
I couldn't figure out why the old code doesn't work anymore either, all I know is that the above patch (which I wrote and Rex tested) makes it more robust and in particular makes it work. :-)
Comment 9 David Faure 2008-05-09 19:00:49 UTC
No idea why this bug is assigned to me ;)
Kevin Kofler: you committed to this code previously, I see, feel free to commit your fix.
Comment 10 Rex Dieter 2008-05-09 19:09:41 UTC
SVN commit 805915 by rdieter:

BUG: 146779

Not sure exactly why the old code didn't work (it's almost the same as the kde3
versions that were ok), butthis ensures systemGtkrc doesn't get lost.


 M  +6 -5      krdb.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=805915
Comment 11 Rex Dieter 2008-05-09 19:14:20 UTC
SVN commit 805916 by rdieter:

CCBUG: 146779

backport fix from trunk.
Not sure exactly why the old code didn't work (it's almost the same as the kde3
versions that were ok), but this ensures systemGtkrc doesn't get lost.


 M  +6 -5      krdb.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=805916
Comment 12 illogic-al 2008-06-04 19:54:05 UTC
This isn't working. SVN from today. Ubuntu 8.04, self compiled binaries.
Comment 13 illogic-al 2008-06-04 20:02:50 UTC
echo GTK2_RC_FILES outputs
/etc/gtk/gtkrc:/home/orville/.gtkrc::/home/orville/.kde/share/config/gtkrc

As you can see there's something missing between the gtkrc found in home and the one in $kdehome.
Can't help out more after this as it's not my machine.
Comment 14 Kevin Kofler 2008-06-05 12:50:26 UTC
The problem there is that you have /etc/gtk/gtkrc instead of /etc/gtk-2.0/gtkrc (and other GTK+ 1 config files), I don't know why. Are you sure what you posted is GTK2_RC_FILES and not GTK_RC_FILES?
Comment 15 FiNeX 2009-01-02 20:34:32 UTC
Bug closed. Kdesktop is no more mantained.
Comment 16 Kevin Kofler 2009-01-02 22:05:01 UTC
This is about KDE 4 (the kcontrol/krdb code in kdebase-workspace), not the KDE 3 kdesktop. Reassigning to systemsettings for lack of a more fitting category.

But it's already fixed anyway.