Hi!

It seems to me that kdm reads your Xdefault/Xresources files when you start
up your windowmanager, because all apps you mentioned are looking for their
default settings in this files. You can confirm this when you start via
runlevel 3. Open an xterm and type xrdb ~/.Xdefaults or xrdb ~/.Xresources
and then open a new xterm and it should have a wheat background again.
If this is true, than either change the colors in your .Xdefaults, or rename
the file so it can't be parsed the next time you start X.

In my gdm there is a menu entry called Xsession. It looks like this:


------------< snip <------< snip <------< snip <------------

#!/bin/bash -login
# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $

case $# in
1)
        case $1 in
        failsafe)
                exec xterm -geometry 80x24-0-0
                ;;
        esac
esac

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
        if ( cp /dev/null "$errfile" 2> /dev/null )
        then
                chmod 600 "$errfile"
                exec > "$errfile" 2>&1
                break
        fi
done

# clean up after xbanner
freetemp

startup=$HOME/.xsession
resources=$HOME/.Xresources

if [ -x "$startup" ]; then
        exec "$startup"
elif [ -x "$HOME/.Xclients" ]; then
        exec "$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
        exec /etc/X11/xinit/Xclients
else
        if [ -f "$resources" ]; then
                xrdb -load "$resources"
        fi
        exec xsm
fi

------------< snip <------< snip <------< snip <------------

You can paste this in a file named Xsession copy it to /etc/gdm/Sessions
as root and make it executable ( chmod +x Xsession ). The next time you start
gdm it should have this entry in his menu. When you start this, it looks for
your ~/.xsession.

The two parameters are the relevant part:

startup=$HOME/.xsession
resources=$HOME/.Xresources.

Ciao Vincenzo


On Tue, Feb 05, 2002 at 07:16:15PM +0100 or thereabouts, Roger Sondermann wrote:
> Hello,
> 
> I'm using Blackbox with Mandrake 7.2 and have had the problem, that
> some non-KDE or -Gnome apps (FileRunner, AcroRead, Xterm, etc.) had an
> ugly background (wheat).
> 
> I figured out (per accident) that the KDE login-manager caused this
> problem, because everything looks normal when I boot to runlevel 3 and
> start Blackbox from there. Because I had no idea how to fix this in
> KDM I tried to use GDM and it also does not change the background
> colors. So I decided to use GDM. Until here anything is OK now.
> 
> With KDM I was used to use the "default" menu-entry (not the Blackbox
> entry), so that the .xsession file in my home directory with the exec
> lines for bbkeys, gkrellm, blackbox was executed. This worked exactly
> one time with GDM, on the next login there was no "default" entry
> anymore. The corresponding Default script in /etc/gdm/Sessions is
> replaced by a link to the KDE script in the same folder now (just to
> tell GDM that it should make KDE my default WM, I think). Strange, how
> can I get my "default" entry in GDM or how can I start additional apps
> together with Blackbox?
> 
> Thank you very much.
> -- 
> Roger Sondermann

Reply via email to