Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915483 - x11-misc/sddm: SDDM is only run under the root X11 user.
Summary: x11-misc/sddm: SDDM is only run under the root X11 user.
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: LxQt maintainers
URL: https://man.archlinux.org/man/sddm.co...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-10-09 14:26 UTC by Benjamín P
Modified: 2025-04-24 22:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamín P 2023-10-09 14:26:25 UTC
It would be great if SDDM could run under wayland. Documentation of SDDM says, that SDDM is abble to run under wayland. It's a little inappropriate to run Xorg to run wayland session. It would be great if x11-misc/sddm had USE flag, which can change default configuration to run SDDM under (for example) kwin compositor. 

If this is not possible, it would be a good idea to run SDDM under X11 without root privileges. This way is for sure stable.
Comment 1 Andreas Sturmlechner gentoo-dev 2023-10-10 09:08:42 UTC
It is experimental and broken for every second user trying to use it.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-21 16:10:52 UTC
https://github.com/gentoo/qt/pull/267 was where we did some WIP on it, just for completeness.
Comment 3 Niklāvs Koļesņikovs 2024-06-30 16:29:35 UTC
One of the reasons for SDDM Wayland backend currently failing to work is bug 935166. And prior to 0.21.0 it would have required weston[fullscreen] instead, dependency on which was likewise not enforced by the old ebuild for 0.18 or 0.20 series either.

Once the correct dependency on dev-libs/weston with the appropriate shell is enforced, it's very likely that SDDM will work reliably with the Wayland backend, since ultimately it's using much of the same graphical stack that most of the still widely used Xorg DDX do (at least with Intel and AMD graphics that I'm familiar with). I expect enabling the Wayland backend by default is not going to be far away. And, unless I'm mistaken, other Plasma 6 distros such as Arch Linux already do use Qt6 SDDM with the Wayland backend as the default.
Comment 4 Niklāvs Koļesņikovs 2024-07-01 10:25:27 UTC
I just realized that the Arch system without xorg-server also lacks sddm, so they likely have not migrated their package to Wayland backend by default. Sorry for that bit of misinformation previously.
Comment 5 Larry the Git Cow gentoo-dev 2025-04-24 22:19:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4699002678178dafc5031ad22b8d5b60d614b505

commit 4699002678178dafc5031ad22b8d5b60d614b505
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-11-19 19:09:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-24 22:18:21 +0000

    x11-misc/sddm: try to use VT7 first
    
    From https://github.com/sddm/sddm/commit/0ff45c0
    
    Set SDDM_INITIAL_VT=7.
    This potentially fixes a lot of the vt related bugs and might allow
    DisplayServer to be set to wayland or x11-user.
    
    Bug: https://bugs.gentoo.org/920955
    Bug: https://bugs.gentoo.org/915483
    Bug: https://bugs.gentoo.org/914656
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/39375
    Closes: https://github.com/gentoo/gentoo/pull/39375
    Signed-off-by: Sam James <sam@gentoo.org>

 ...nager-init-1.1.2-r1.ebuild => display-manager-init-1.1.2-r2.ebuild} | 0
 gui-libs/display-manager-init/files/display-manager.confd              | 1 +
 x11-misc/sddm/sddm-0.21.0_p20250326.ebuild                             | 3 +++
 3 files changed, 4 insertions(+)