Skip to content

Lightdm will run your scripts, but there are some complicated prerequisites ... #293

@lutusp

Description

@lutusp

Using lightdm 1.26.0 on Debian 11 and xfce4 4.16 environment. After several days of struggle I managed to get Lightdm to change monitor resolutions in advance of logging on. Some points:

  • If an external shell script is used, it must be:

    • Located under /usr/share,
    • Owned by lightdm, in group lightdm,
    • It cannot print or log to any destination not accessible to lightdm.
    • There is no flexibility about this, and no warnings/errors are provided.
  • To test a configuration:

    • Install xserver-xephyr:
      # apt install xserver-xephyr
    • Run the test as user lightdm:
      # sudo -u lightdm lightdm --test-mode --debug
  • Put the shell script reference in /etc/lightdm/lightdm.conf:

        [Seat:*]
        display-setup-script=/usr/share/your_script_name.sh 
  • Again, the script must be owned by lightdm and be located under /usr/share.

I hope this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions