On 2003-01-16(Thu) 09:14:25 +0000, Adam Williamson wrote:
> > So you should know that these stupid requires are used to mimic what
> > David wants, but not what *I* want.
> 
> That's simply not true, though. David said that Geramik shouldn't be
> *used* by people who use GNOME, which is perfectly true - it's kind of
> silly (no offence Thierry, but it is!) He never said it shouldn't be
> installed on a machine which has GNOME on it. Linux is MULTIUSER,
> remember. It should be possible to install Geramik on a machine used by
> people who use GNOME and people who use KDE, for use only by the people
> who use KDE.

I must admit I have forgotten this case: a multiuser machine, where some
use KDE and others use GNOME. But my argument (it invades users who use
default theme in GNOME) still holds true. Everything boils down to the
scriptlets:

%post
if [ $1 != 2 ]; then
        if [ ! -f /etc/gtk/gtkrc ]; then
                ln -s %{_datadir}/themes/Geramik/gtk/gtkrc /etc/gtk/gtkrc
        fi
        if [ ! -f /etc/gtk/gtkrc-2.0 ]; then
                ln -s %{_datadir}/themes/Geramik/gtk-2.0/gtkrc-2.0 /etc/gtk-2.0/gtkrc
        fi
fi

%preun
if [ $1 == 0 ]; then
        if grep %{name} /etc/gtk/gtkrc > /dev/null 2>&1 ;then
                rm -f /etc/gtk/gtkrc
        fi
        if grep %{name} /etc/gtk-2.0/gtkrc > /dev/null 2>&1 ;then
                rm -f /etc/gtk-2.0/gtkrc
        fi
fi

If one says that:
since sysadmins installed Geramik on those systems, and sysadmins are
supposed to be in control, users who use default theme in GNOME-only
environment shouldn't complain about their default theme changed, as
sysadmins are always correct.
Then I'll give up.

Hope GTK2_RC_FILE can be a solution. I'll wait and see.
-- 
Abel Cheung
GPG Key: (0xC67186FF) http://deaddog.org/gpg.asc

Attachment: msg86336/pgp00000.pgp
Description: PGP signature

Reply via email to