Conflict with gtkrc-2.0 from Kubuntu

email.listen at googlemail.com email.listen at googlemail.com
Sat Apr 1 08:22:33 UTC 2006


Hi Scott
Am Sat, 1. April 2006 09:51 schrieb Scott:
> Liz Young spake thusly on 03/31/2006 04:07 PM:
> > Hi,
> >
> > I installed xubuntu-desktop from Kubuntu Flight 5.  If the file
> > ~/gtkrc-2.0 exists, the xubuntu desktop never loads, just the
> > wallpaper shows but no panel or task bar (I think they crash just
> > after logging in from gdm or kdm).  Deleting the file fixes the
> > problem.  The file is created by the KDE GTK Styles and fonts control
> > panel and default looks like this:
> > ==========
> > # This file was written by KDE
> > # You can edit it in the KDE control center, under "GTK Styles and Fonts"
> >
> > include "/usr/share/themes/Qt/gtk-2.0/gtkrc"
> >
> > style "user-font"
> > {
> >         font_name="DejaVu Sans 11"
> > }
> > widget_class "*" style "user-font"
> >
> > gtk-theme-name="Qt"
> > gtk-font-name="DejaVu Sans 11"
> > ==========
> >
> > The same problem occurs on Breezy.
> > Is there a config to avoid reading this file on login?
>
> This is due to a bug in the gtk2-engines-gtk-qt package.
>
> https://launchpad.net/distros/ubuntu/+source/gtk-qt-engine/+bug/36256
> https://bugs.freedesktop.org/show_bug.cgi?id=4178
>
> Workaround: Delete the ~/gtkrc-2.0 file. Log out of XFCE and log back in
> and the problem should be gone.  If not, you'll also need to delete the
> ~/..gtk_qt_engine_rc file as well (both have been problems for me).
>
> If you also still have KDE installed (and use it) KDE will re-create
> these files without any trouble.  You will need to reset your
> preferences for GTK apss in kcontrol, however.
>
> If you wish to switch from KDE to XFCE or GNOME you'll need to delete
> those files again. It's easiest to do it while still in KDE, just prior
> to logging off.

Wouldn't it be a better workaround to do this in some kind of xfce prestart 
script or at least in a kde logout script?

E.G. the xfce4 startup script for gdm

----8<--- /etc/gdm/sessions/Xfce4 ---8<---
#!/bin/sh
#
# Make Xfce4 selectable in the GDM menu
#

## delete gtkrc file 
if [ -f  $HOME/gtkrc-2.0] ; then
    rm $HOME/gtkrc-2.0
fi
## delete .gtk_qt_engine_rc file
if [ -f  $HOME/.gtk_qt_engine_rc] ; then
    rm $HOME/.gtk_qt_engine_rc
fi

exec /etc/X11/Xsession /usr/bin/xfce4-session
----8<--- /etc/gdm/sessions/Xfce4 ---8<---

This should be a workaround for those who use gdm as login manager.

regards,
Thomas




More information about the xubuntu-devel mailing list