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 - sddm tells udev to execute "rm -f /etc/sddm/hide-wayland-sessions" on *every* udev event
Summary: sddm tells udev to execute "rm -f /etc/sddm/hide-wayland-sessions" on *every*...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: sddm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Bříza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-01 15:30 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2021-06-01 15:32 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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"


Note You need to log in before you can comment on or make changes to this bug.