Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1966653

Summary: sddm tells udev to execute "rm -f /etc/sddm/hide-wayland-sessions" on *every* udev event
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: sddmAssignee: Martin Bříza <m>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jgrulich, kde-sig, me, m, pierluigi.fiorini, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zbigniew Jędrzejewski-Szmek 2021-06-01 15:30:01 UTC
Description of problem:
Holy moly, why involve udev in this at all? Please just check the kernel command
line when starting sddm. And if sddm cannot check itself, do it in ExecStartPre=.
There is really no need to touch the file system on every udev add, remove, change, bind, and unbind event.

Version-Release number of selected component (if applicable):
sddm-0.19.0-13.fc34.x86_64

Comment 1 Zbigniew Jędrzejewski-Szmek 2021-06-01 15:32:53 UTC
$ cat /usr/lib/udev/rules.d/61-sddm-plasmawayland.rules
# disable Wayland if modesetting is disabled
RUN+="/usr/bin/rm -f /etc/sddm/hide-wayland-sessions"
IMPORT{cmdline}="nomodeset", RUN+="/usr/bin/touch /etc/sddm/hide-wayland-sessions"