[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-user
Subject: Re: KDM & $KDEDIR
From: "Bruce J. Carter" <bjcarter () gte ! net>
Date: 1998-06-28 19:55:15
[Download RAW message or body]
This message is in MIME format
Find attached a copy of my /etc/X11/xdm/Xsession, /etc/X11/xinit/Xclients
and /etc/X11/xinit/xinitrc. They have everything in them for starting kdm,
and executing startkde, they also do the setup for KDEDIR, PATH and all
other associated environment variables. This is the way DR3 for MkLinux
comes.
Hope this helps, and solves the confusion.
Cheers,
Bruce...
On 28-Jun-98 shock wrote:
> Ralf Spachmann wrote:
>
>> Am Sat, 27 Jun 1998, schrieb shock:
>> >I apparently screwed up when I configured kdm, because when I use it,
>> >my
>> >system doesn't recognize $KDEDIR. Can I correct this by adding it to
>> >my
>> >.bashrc, or is there another place to do it?
>> >
>>
>> How about the /etc/profile ??? That helped in my case !
>
> Yes, it's in my /etc/profile, and if I startup the system without kdm,
> $KDEDIR
> is defined. However, if I use kdm, $KDEDIR has no value.
>
> I know that I screwed this up, because I didn't modify my .configure
> file
> properly when I was installing kdm. I'm just wondering if there is
> someplace
> where I can correct my error, or if I must completely reinstall kdm.
> --
> Shock
> http://www.lx.net/shock
> http://www.buckowensfan.com
----------------------------------
E-Mail: Bruce J. Carter <bjcarter@gte.net>
Date: 28-Jun-98
Time: 14:47:56
This message was sent by XFMail
----------------------------------
["Xclients" (Xclients)]
#!/bin/bash
########################################################################
# -*- sh -*- #
# #
# ~/.Xclients: used by startx (xinit) to start up a window manager and #
# any other clients you always want to start an X session with. #
# #
# feel free to edit this file to suit your needs. #
########################################################################
# these files are left sitting around by TheNextLevel.
rm -f $HOME/Xrootenv.0
rm -f /tmp/fvwmrc*
if [ -n "$(type -path startkde)" ]; then
# if this works, we stop here
exec startkde
fi
# first, find an M4-enabled config file (such as
# the one from AnotherLevel) for fvwm2 or fvwm95.
RCFILE=""
for tryfile in "$HOME/.fvwm2rc.m4" "/etc/X11/AnotherLevel/fvwm2rc.m4"; do
if [ -f "$tryfile" ]; then
RCFILE="$tryfile"
break
fi
done
# if it really exists, use it; if not, fvwm2 or fvwm95 will
# automagically look for a config file in the regular places.
if [ -n "$RCFILE" ]; then
FVWMOPTIONS="-cmd 'FvwmM4 -debug $RCFILE'"
else
FVWMOPTIONS=""
fi
# TheNextLevel is supposed to work
# with both fvwm95 and fvwm2
# (try fvwm95 first, then fvwm2).
for FVWMVER in 95 95-2 2; do
if [ -n "$(type -path fvwm${FVWMVER})" ]; then
env > "$HOME"/Xrootenv.0
# if this works, we stop here
eval "exec fvwm${FVWMVER} ${FVWMOPTIONS}" > "$HOME"/.FVWM${FVWMVER}-errors 2>&1
fi
done
# gosh, neither fvwm95 nor fvwm2 is available;
# let's try regular fvwm (AnotherLevel doesn't work with fvwm1).
if [ -n "$(type -path fvwm)" ]; then
# if this works, we stop here
exec fvwm
fi
# wow, fvwm isn't here either ...
# use twm as a last resort.
xterm &
exec twm
["xinitrc" (xinitrc)]
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
if [ -z "$BROWSER" ] ; then
# we need to find a browser on this system
BROWSER=`which netscape`
if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
# not found yet
BROWSER=
fi
fi
if [ -z "$BROWSER" ] ; then
# we need to find a browser on this system
BROWSER=`which lynx`
if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
# not found yet
BROWSER=
else
BROWSER="xterm -font 9x15 -e lynx"
fi
fi
if [ -z "$BROWSER" ] ; then
# we need to find a browser on this system
BROWSER=`which arena`
if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
# not found yet
BROWSER=
fi
fi
export BROWSER
# start some nice programs
if [ -f $HOME/.Xclients ]; then
exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
exec /etc/X11/xinit/Xclients
else
if [ -f /opt/kde/bin/startkde ]; then
exec startkde
elif [ -f /usr/X11R6/bin/fvwm ]; then
exec fvwm
else
exec twm
fi
fi
["Xsession" (Xsession)]
#!/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
End of MIME message
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic