LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   LXDM login manager: restart X on logout? (https://www.linuxquestions.org/questions/slackware-14/lxdm-login-manager-restart-x-on-logout-4175580391/)

kikinovak 05-22-2016 12:38 AM

LXDM login manager: restart X on logout?
 
Hi,

I'm using the LXDM login manager on all my Slackware desktops, and I have a small but nagging problem with it.

Login managers shipping with Slackware restart X upon logout, which has a positive side effect: on the login screen, the system reverts to the default X keyboard layout defined in /etc/X11/xorg.conf.d/90-keyboard-layout.conf, for example:

Code:

Section "InputClass"
        Identifier "keyboard-all"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "XkbLayout" "ch"
        Option "XkbVariant" "fr"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Now on systems with many users - like in our local school or the public library - some folks define a custom keyboard layout different from the default layout. In Xfce you can define that (like in KDE or GNOME), and under the hood, there's some command like 'setxkbmap -layout ch -variant de' or 'setxkbmap -layout fr' running.

Now here's the problem. When one of those users logs out, the login screen keeps the last defined custom layout, which will eventually become a problem for the subsequent user typing in his login/password.

And here's the question. How can I get LXDM to behave like XDM or KDM, e. g. respawn so the keyboard gets back to its default layout?

Cheers,

Niki

heyjann 05-22-2016 02:06 PM

Just double-checking, you have uncommented reset = 1 in the [server] section of /etc/lxdm/lxdm.conf already?

kikinovak 05-23-2016 03:15 PM

Quote:

Originally Posted by heyjann (Post 5549290)
Just double-checking, you have uncommented reset = 1 in the [server] section of /etc/lxdm/lxdm.conf already?

You're a star. I just discovered that option.

Thanks very much.

Niki


All times are GMT -5. The time now is 04:50 PM.