Skip to content

SDDM 0.20 uses random TTY, breaks autostart programs needing X server #1777

@beermad

Description

@beermad

Since upgrading to SDDM 20.0, my X server no longer starts reliably on TTY1, instead it seems to be fairly random, though it usually opens on TTY2.

In principle this shouldn't be a problem in itself, but unfortunately it has very problematic side-effects. I have a number of programs which I launch via KDE autostart options. Some of these need to open GUI windows (things like Firefox & Thunderbird, for example).

Other users on Reddit and the Manjaro forum also report that cron jobs and/or systemd timers which should open GUI windows are failing.

All failures are accompanied by the following messages:

Invalid MIT-MAGIC-COOKIE-1 key 
Cannot open display ":0.0"

[Edit]: the magic cookie message may be a red herring. But "Cannot open display" is the important message".

Non-startup jobs can be fixed by issuing:
xhost +

Startup jobs will work OK if I log out then log back in again, so it seems the problem is that somehow the change of TTY is causing an INITIAL problem opening the X display. I suspect other people's problem with cron/systemd jobs would also get fixed by that.

I have downgraded SDDM to the 0.19 and this has solved my problems, which proves the new version to be responsible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions