The script checks and sources /etc/profile, ~/.profile, /etc/xprofile and ~/.xprofile, in that order. By default, /etc/lightdm/Xsession is run. LightDM launches the display by running a wrapper script and that finally exec's your graphic environment. This is because, as opposed to your shell starting the display (and the display inheriting the environment of your shell), LightDM starts your display and does not source your shell. If you are migrating from xinit, you will notice that the display is not launched by your shell. Notes: Duplicated information (Discuss in Talk:LightDM) Lightdm-webkit2-greeter: /etc/lightdm/nf X session wrapper Lightdm-gtk-greeter: /etc/lightdm/nf (or you can use the lightdm-gtk-greeter-settings gui). Some greeters have their own configuration files. LightDM can be configured by modifying its config file, /etc/lightdm/nf.
The following will send a signal requesting that the current session be locked and then will initiate a switch to LightDM's greeter, allowing a new user to log in to the system.įirst, install xorg-server-xephyr from the official repositories. LightDM's dm-tool command can be used to allow multiple users to be logged in on separate ttys. Use light-locker or something from List of applications/Security#Screen lockers.
Warning: The use of lightDM's built-in screen lockers like dm-tool lock or dm-tool switch-to-greeter are not recommended. To see a list of available commands, execute: LightDM offers a command line tool, dm-tool, which can be used to lock the current seat, switch sessions, etc, which is useful with 'minimalist' window managers and for testing. Make sure to enable rvice so LightDM will be started at boot see also Display manager#Loading the display manager. In this example, the lightdm-gtk-greeter and lightdm-webkit2-greeter greeters are available: desktop file represents an available greeter. One way to check which greeters are available is to list the files in the /usr/share/xgreeters directory each. Greeter-session=lightdm- yourgreeter-greeter You can set the default greeter by changing the section of the LightDM configuration file, like so: