<html><body>I'm writing a script that configures Kubuntu and that includes SDDM. The most important thing is the theme, but the only way of changing it from terminal I'm aware of is restarting SDDM, which I don't want to do as it forces logout.
<br><br>I had a look at what systemsettings does and it seems to use the system DBus to notify SDDM that its configuration has changed.
<br><br>Is it possible to do the same in a script or terminal without restarting the SDDM and logging out forcefully?
<br><br>Thank you. <br><br>PS: I have no idea how to pass a structure to qdbus, but it seems that systemsettings does this (output of dbus-monitor --system): <br><br>method call time=1672220102.585064 sender=:1.328 -> destination=:1.6 serial=18 path=/org/freedesktop/PolicyKit1/Authority; interface=org.freedesktop.PolicyKit1.Authority; member=CheckAuthorization<br> struct {<br> string "system-bus-name"<br> array [<br> dict entry(<br> string "name"<br> variant string ":1.329"<br> )<br> ]<br> }<br> string "org.kde.kcontrol.kcmsddm.save"<br> array [<br> ]<br> uint32 0<br> string ""<br>method call time=1672220102.604099 sender=:1.329 -> destination=org.freedesktop.DBus serial=11 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName<br> string "org.kde.kcontrol.kcmsddm"<br> uint32 0<br>method call time=1672220102.641931 sender=:1.329 -> destination=org.kde.kcontrol.kcmsddm serial=12 path=/; interface=org.kde.kf5auth; member=performAction<br> string "org.kde.kcontrol.kcmsddm.save"<br> array of bytes ":1.329"<br> array [<br> ]<br> array of bytes [<br> 00 00 00 0b 00 00 00 46 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74<br> 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 41 00 75<br> 00 74 00 6f 00 6c 00 6f 00 67 00 69 00 6e 00 2f 00 52 00 65 00 6c 00 6f<br> 00 67 00 69 00 6e 00 00 00 01 00 00 00 00 00 46 00 6b 00 64 00 65 00 5f<br> 00 73 00 65 00 74 00 74 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e<br> 00 66 00 2f 00 41 00 75 00 74 00 6f 00 6c 00 6f 00 67 00 69 00 6e 00 2f<br> 00 53 00 65 00 73 00 73 00 69 00 6f 00 6e 00 00 00 0a 00 00 00 00 1c 00<br> 70 00 6c 00 61 00 73 00 6d 00 61 00 2e 00 64 00 65 00 73 00 6b 00 74 00<br> 6f 00 70 00 00 00 40 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74 00<br> 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 41 00 75 00<br> 74 00 6f 00 6c 00 6f 00 67 00 69 00 6e 00 2f 00 55 00 73 00 65 00 72 00<br> 00 00 0a 00 00 00 00 0e 00 6b 00 75 00 62 00 75 00 6e 00 74 00 75 00 00<br> 00 4a 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74 00 69 00 6e 00 67<br> 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 47 00 65 00 6e 00 65 00 72<br> 00 61 00 6c 00 2f 00 48 00 61 00 6c 00 74 00 43 00 6f 00 6d 00 6d 00 61<br> 00 6e 00 64 00 00 00 0a 00 00 00 00 00 00 00 00 4e 00 6b 00 64 00 65 00<br> 5f 00 73 00 65 00 74 00 74 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00<br> 6e 00 66 00 2f 00 47 00 65 00 6e 00 65 00 72 00 61 00 6c 00 2f 00 52 00<br> 65 00 62 00 6f 00 6f 00 74 00 43 00 6f 00 6d 00 6d 00 61 00 6e 00 64 00<br> 00 00 0a 00 00 00 00 00 00 00 00 3e 00 6b 00 64 00 65 00 5f 00 73 00 65<br> 00 74 00 74 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f<br> 00 54 00 68 00 65 00 6d 00 65 00 2f 00 43 00 75 00 72 00 72 00 65 00 6e<br> 00 74 00 00 00 0a 00 00 00 00 20 00 66 00 61 00 6e 00 74 00 61 00 73 00<br> 79 00 2d 00 62 00 6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 00 00 44 00<br> 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74 00 69 00 6e 00 67 00 73 00<br> 2e 00 63 00 6f 00 6e 00 66 00 2f 00 55 00 73 00 65 00 72 00 73 00 2f 00<br> 4d 00 61 00 78 00 69 00 6d 00 75 00 6d 00 55 00 69 00 64 00 00 00 03 00<br> 00 00 ea 60 00 00 00 44 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74<br> 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 55 00 73<br> 00 65 00 72 00 73 00 2f 00 4d 00 69 00 6e 00 69 00 6d 00 75 00 6d 00 55<br> 00 69 00 64 00 00 00 03 00 00 00 03 e7 00 00 00 1e 00 74 00 68 00 65 00<br> 6d 00 65 00 2e 00 63 00 6f 00 6e 00 66 00 2e 00 75 00 73 00 65 00 72 00<br> 00 00 0a 00 00 00 00 6e 00 2f 00 75 00 73 00 72 00 2f 00 73 00 68 00 61<br> 00 72 00 65 00 2f 00 73 00 64 00 64 00 6d 00 2f 00 74 00 68 00 65 00 6d<br> 00 65 00 73 00 2f 00 66 00 61 00 6e 00 74 00 61 00 73 00 79 00 2d 00 62<br> 00 6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 2f 00 74 00 68 00 65 00 6d<br> 00 65 00 2e 00 63 00 6f 00 6e 00 66 00 2e 00 75 00 73 00 65 00 72 00 00<br> 00 44 00 74 00 68 00 65 00 6d 00 65 00 2e 00 63 00 6f 00 6e 00 66 00 2e<br> 00 75 00 73 00 65 00 72 00 2f 00 47 00 65 00 6e 00 65 00 72 00 61 00 6c<br> 00 2f 00 62 00 61 00 63 00 6b 00 67 00 72 00 6f 00 75 00 6e 00 64 00 00<br> 00 0a 00 00 00 00 74 00 2f 00 75 00 73 00 72 00 2f 00 73 00 68 00 61 00<br> 72 00 65 00 2f 00 73 00 64 00 64 00 6d 00 2f 00 74 00 68 00 65 00 6d 00<br> 65 00 73 00 2f 00 66 00 61 00 6e 00 74 00 61 00 73 00 79 00 2d 00 62 00<br> 6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 2f 00 4e 00 4f 00 20 00 4c 00<br> 4f 00 47 00 4f 00 20 00 49 00 4d 00 50 00 20 00 32 00 31 00 2e 00 70 00<br> 6e 00 67 00 00 00 38 00 74 00 68 00 65 00 6d 00 65 00 2e 00 63 00 6f 00<br> 6e 00 66 00 2e 00 75 00 73 00 65 00 72 00 2f 00 47 00 65 00 6e 00 65 00<br> 72 00 61 00 6c 00 2f 00 74 00 79 00 70 00 65 00 00 00 0a 00 00 00 00 0a<br> 00 69 00 6d 00 61 00 67 00 65<br> ]<br>signal time=1672220102.643753 sender=:1.367 -> destination=(null destination) serial=3 path=/; interface=org.kde.kf5auth; member=remoteSignal<br> int32 0<br> string "org.kde.kcontrol.kcmsddm.save"<br> array [<br> ]<br>method call time=1672220102.644534 sender=:1.366 -> destination=:1.6 serial=8 path=/org/freedesktop/PolicyKit1/Authority; interface=org.freedesktop.PolicyKit1.Authority; member=CheckAuthorization<br> struct {<br> string "system-bus-name"<br> array [<br> dict entry(<br> string "name"<br> variant string ":1.329"<br> )<br> ]<br> }<br> string "org.kde.kcontrol.kcmsddm.save"<br> array [<br> ]<br> uint32 1<br> string "cancellation-id-0"<br>signal time=1672220102.652435 sender=:1.367 -> destination=(null destination) serial=4 path=/; interface=org.kde.kf5auth; member=remoteSignal<br> int32 2<br> string "org.kde.kcontrol.kcmsddm.save"<br> array of bytes [<br> 00 00 00 00 00 00 01 2e 00 43 00 6f 00 70 00 79 00 69 00 6e 00 67 00 20<br> 00 62 00 61 00 63 00 6b 00 67 00 72 00 6f 00 75 00 6e 00 64 00 20 00 66<br> 00 72 00 6f 00 6d 00 20 00 20 00 22 00 2f 00 75 00 73 00 72 00 2f 00 73<br> 00 68 00 61 00 72 00 65 00 2f 00 73 00 64 00 64 00 6d 00 2f 00 74 00 68<br> 00 65 00 6d 00 65 00 73 00 2f 00 66 00 61 00 6e 00 74 00 61 00 73 00 79<br> 00 2d 00 62 00 6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 2f 00 4e 00 4f<br> 00 20 00 4c 00 4f 00 47 00 4f 00 20 00 49 00 4d 00 50 00 20 00 32 00 31<br> 00 2e 00 70 00 6e 00 67 00 22 00 20 00 20 00 74 00 6f 00 20 00 20 00 22<br> 00 2f 00 75 00 73 00 72 00 2f 00 73 00 68 00 61 00 72 00 65 00 2f 00 73<br> 00 64 00 64 00 6d 00 2f 00 74 00 68 00 65 00 6d 00 65 00 73 00 2f 00 66<br> 00 61 00 6e 00 74 00 61 00 73 00 79 00 2d 00 62 00 6c 00 75 00 65 00 2d<br> 00 76 00 2e 00 32 00 2f 00 4e 00 4f 00 20 00 4c 00 4f 00 47 00 4f 00 20<br> 00 49 00 4d 00 50 00 20 00 32 00 31 00 2e 00 70 00 6e 00 67 00 22<br> ]<br>signal time=1672220102.655492 sender=:1.367 -> destination=(null destination) serial=5 path=/; interface=org.kde.kf5auth; member=remoteSignal<br> int32 1<br> string "org.kde.kcontrol.kcmsddm.save"<br> array of bytes [<br> 00 00 00 00 00 00 00 00 00 00 00 02 ff ff ff ff<br> ]<br><br></body></html>