I had a little trouble with this myself. I tracked down the (problem??) to
/etc/X11/xdm/Xsession. ~/.xsession is supposed to be executed upon startup
of X from xdm (or kdm), but it is not unless to choose default. The default
option falls through the case statement and then executes ~/.xsession.
So just copy /etc/X11/xdm/Xsession to ~/.xsession and edit as necessary, then
choose default from the KDM login screen or edit ~/.wmrc and replace text
with default. Here is a copy of mine:
------------------------------------------------------------------------
#!/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
# User defined key mapping
xmodmap -e "keycode 22 = BackSpace"
# GOLD key
xmodmap -e "keycode 77 = KP_F1"
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Let everybody have access
xhost+
# start some nice programs
#fvwm
#fvwm2
#enlightenment
exec startkde
-----------------------------------------------------------------------
Salvador Ramirez writes:
> Hi,
>
> When redhat is configured to have graphical login with KDE for
> example, where can be put commands to be executed when the graphical
> login manager start?
> In /etc/rc.d/rc.local I can put commands when the system start but
> I need to execute commands of the X windows system (like xset, etc).
> Thank you in advance,
>
> ---sram
> "Don't listen to what I say; listen to what I mean!" --Feynman
> Salvador Ramirez Flandes PROFC, Universidad de Concepcion, CHILE
> http://www.profc.udec.cl/~sram mailto:[EMAIL PROTECTED]
>
> --
> To unsubscribe:
> mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null