You are not logged in.
Pages: 1
Whats the best way to have a script run before SDDM loads? I wrote a script that will enable/disable the touchpad based on how it was when the laptop was turned off. I can't seem to get it to run before SDDM, instead it seems no matter where i put it, it will only run when KDE starts. I would like it to be run before SDDM, so that if it's disabled when the system was shut down, it will stay disabled on restart. Currently, no matter the state, it will be enabled in SDDM, then disabled for KDE if it was disabled at shutdown.
Hope that makes sense. Any guidance would be appreciated
Offline
Sounds like you want to write a systemd service that is wanted by the multiuser.target. sddm starts with the graphical.target and does not start until after multiuser.target.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Thanks, I didn't try that. I will give it a shot!
Offline
If you are relying on xinput or so which would mean you need to have a runnning Xorg you can configure a script under /usr/share/sddm/scripts/Xsetup (make it executable and give it a proper shebang) to run commands while in a Xorg context for SDDM
Offline
Pages: 1