Comment 1 for bug 27839

Revision history for this message
Andreas Simon (andreas-w-simon) wrote :

It would be really nice to get this into dapper.

The question how kde starts automatically a user's ~/.Xmodmap file is a common one from people who need to setup their keyboard's special keys.

Just adding the following lines from gdm's /etc/X11/gdm/Xsession to /etc/kde3/kdm/Xsession or maybe better to /etc/X11/Xsession should be enough:

usermodmap="$HOME/.Xmodmap"
userxkbmap="$HOME/.Xkbmap"

if [ -f "$userxkbmap" ]; then
    setxkbmap `cat "$userxkbmap"`
    XKB_IN_USE=yes
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
    if [ -f "$usermodmap" ]; then
       xmodmap "$usermodmap"
    fi
fi

unset XKB_IN_USE