How to make SDDM reload its settings from a script or terminal?
ask4support at email.cz
ask4support at email.cz
Fri Dec 30 20:03:11 GMT 2022
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.
I had a look at what systemsettings does and it seems to use the system DBus
to notify SDDM that its configuration has changed.
Is it possible to do the same in a script or terminal without restarting the
SDDM and logging out forcefully?
Thank you.
PS: I have no idea how to pass a structure to qdbus, but it seems that
systemsettings does this (output of dbus-monitor --system):
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
struct {
string "system-bus-name"
array [
dict entry(
string "name"
variant string ":1.329"
)
]
}
string "org.kde.kcontrol.kcmsddm.save"
array [
]
uint32 0
string ""
method call time=1672220102.604099 sender=:1.329 -> destination=org.
freedesktop.DBus serial=11 path=/org/freedesktop/DBus; interface=org.
freedesktop.DBus; member=StartServiceByName
string "org.kde.kcontrol.kcmsddm"
uint32 0
method call time=1672220102.641931 sender=:1.329 -> destination=org.kde.
kcontrol.kcmsddm serial=12 path=/; interface=org.kde.kf5auth; member=
performAction
string "org.kde.kcontrol.kcmsddm.save"
array of bytes ":1.329"
array [
]
array of bytes [
00 00 00 0b 00 00 00 46 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74
00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 41 00 75
00 74 00 6f 00 6c 00 6f 00 67 00 69 00 6e 00 2f 00 52 00 65 00 6c 00 6f
00 67 00 69 00 6e 00 00 00 01 00 00 00 00 00 46 00 6b 00 64 00 65 00 5f
00 73 00 65 00 74 00 74 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e
00 66 00 2f 00 41 00 75 00 74 00 6f 00 6c 00 6f 00 67 00 69 00 6e 00 2f
00 53 00 65 00 73 00 73 00 69 00 6f 00 6e 00 00 00 0a 00 00 00 00 1c 00
70 00 6c 00 61 00 73 00 6d 00 61 00 2e 00 64 00 65 00 73 00 6b 00 74 00
6f 00 70 00 00 00 40 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74 00
69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 41 00 75 00
74 00 6f 00 6c 00 6f 00 67 00 69 00 6e 00 2f 00 55 00 73 00 65 00 72 00
00 00 0a 00 00 00 00 0e 00 6b 00 75 00 62 00 75 00 6e 00 74 00 75 00 00
00 4a 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74 00 69 00 6e 00 67
00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 47 00 65 00 6e 00 65 00 72
00 61 00 6c 00 2f 00 48 00 61 00 6c 00 74 00 43 00 6f 00 6d 00 6d 00 61
00 6e 00 64 00 00 00 0a 00 00 00 00 00 00 00 00 4e 00 6b 00 64 00 65 00
5f 00 73 00 65 00 74 00 74 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00
6e 00 66 00 2f 00 47 00 65 00 6e 00 65 00 72 00 61 00 6c 00 2f 00 52 00
65 00 62 00 6f 00 6f 00 74 00 43 00 6f 00 6d 00 6d 00 61 00 6e 00 64 00
00 00 0a 00 00 00 00 00 00 00 00 3e 00 6b 00 64 00 65 00 5f 00 73 00 65
00 74 00 74 00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f
00 54 00 68 00 65 00 6d 00 65 00 2f 00 43 00 75 00 72 00 72 00 65 00 6e
00 74 00 00 00 0a 00 00 00 00 20 00 66 00 61 00 6e 00 74 00 61 00 73 00
79 00 2d 00 62 00 6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 00 00 44 00
6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74 00 69 00 6e 00 67 00 73 00
2e 00 63 00 6f 00 6e 00 66 00 2f 00 55 00 73 00 65 00 72 00 73 00 2f 00
4d 00 61 00 78 00 69 00 6d 00 75 00 6d 00 55 00 69 00 64 00 00 00 03 00
00 00 ea 60 00 00 00 44 00 6b 00 64 00 65 00 5f 00 73 00 65 00 74 00 74
00 69 00 6e 00 67 00 73 00 2e 00 63 00 6f 00 6e 00 66 00 2f 00 55 00 73
00 65 00 72 00 73 00 2f 00 4d 00 69 00 6e 00 69 00 6d 00 75 00 6d 00 55
00 69 00 64 00 00 00 03 00 00 00 03 e7 00 00 00 1e 00 74 00 68 00 65 00
6d 00 65 00 2e 00 63 00 6f 00 6e 00 66 00 2e 00 75 00 73 00 65 00 72 00
00 00 0a 00 00 00 00 6e 00 2f 00 75 00 73 00 72 00 2f 00 73 00 68 00 61
00 72 00 65 00 2f 00 73 00 64 00 64 00 6d 00 2f 00 74 00 68 00 65 00 6d
00 65 00 73 00 2f 00 66 00 61 00 6e 00 74 00 61 00 73 00 79 00 2d 00 62
00 6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 2f 00 74 00 68 00 65 00 6d
00 65 00 2e 00 63 00 6f 00 6e 00 66 00 2e 00 75 00 73 00 65 00 72 00 00
00 44 00 74 00 68 00 65 00 6d 00 65 00 2e 00 63 00 6f 00 6e 00 66 00 2e
00 75 00 73 00 65 00 72 00 2f 00 47 00 65 00 6e 00 65 00 72 00 61 00 6c
00 2f 00 62 00 61 00 63 00 6b 00 67 00 72 00 6f 00 75 00 6e 00 64 00 00
00 0a 00 00 00 00 74 00 2f 00 75 00 73 00 72 00 2f 00 73 00 68 00 61 00
72 00 65 00 2f 00 73 00 64 00 64 00 6d 00 2f 00 74 00 68 00 65 00 6d 00
65 00 73 00 2f 00 66 00 61 00 6e 00 74 00 61 00 73 00 79 00 2d 00 62 00
6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 2f 00 4e 00 4f 00 20 00 4c 00
4f 00 47 00 4f 00 20 00 49 00 4d 00 50 00 20 00 32 00 31 00 2e 00 70 00
6e 00 67 00 00 00 38 00 74 00 68 00 65 00 6d 00 65 00 2e 00 63 00 6f 00
6e 00 66 00 2e 00 75 00 73 00 65 00 72 00 2f 00 47 00 65 00 6e 00 65 00
72 00 61 00 6c 00 2f 00 74 00 79 00 70 00 65 00 00 00 0a 00 00 00 00 0a
00 69 00 6d 00 61 00 67 00 65
]
signal time=1672220102.643753 sender=:1.367 -> destination=(null
destination) serial=3 path=/; interface=org.kde.kf5auth; member=remoteSignal
int32 0
string "org.kde.kcontrol.kcmsddm.save"
array [
]
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
struct {
string "system-bus-name"
array [
dict entry(
string "name"
variant string ":1.329"
)
]
}
string "org.kde.kcontrol.kcmsddm.save"
array [
]
uint32 1
string "cancellation-id-0"
signal time=1672220102.652435 sender=:1.367 -> destination=(null
destination) serial=4 path=/; interface=org.kde.kf5auth; member=remoteSignal
int32 2
string "org.kde.kcontrol.kcmsddm.save"
array of bytes [
00 00 00 00 00 00 01 2e 00 43 00 6f 00 70 00 79 00 69 00 6e 00 67 00 20
00 62 00 61 00 63 00 6b 00 67 00 72 00 6f 00 75 00 6e 00 64 00 20 00 66
00 72 00 6f 00 6d 00 20 00 20 00 22 00 2f 00 75 00 73 00 72 00 2f 00 73
00 68 00 61 00 72 00 65 00 2f 00 73 00 64 00 64 00 6d 00 2f 00 74 00 68
00 65 00 6d 00 65 00 73 00 2f 00 66 00 61 00 6e 00 74 00 61 00 73 00 79
00 2d 00 62 00 6c 00 75 00 65 00 2d 00 76 00 2e 00 32 00 2f 00 4e 00 4f
00 20 00 4c 00 4f 00 47 00 4f 00 20 00 49 00 4d 00 50 00 20 00 32 00 31
00 2e 00 70 00 6e 00 67 00 22 00 20 00 20 00 74 00 6f 00 20 00 20 00 22
00 2f 00 75 00 73 00 72 00 2f 00 73 00 68 00 61 00 72 00 65 00 2f 00 73
00 64 00 64 00 6d 00 2f 00 74 00 68 00 65 00 6d 00 65 00 73 00 2f 00 66
00 61 00 6e 00 74 00 61 00 73 00 79 00 2d 00 62 00 6c 00 75 00 65 00 2d
00 76 00 2e 00 32 00 2f 00 4e 00 4f 00 20 00 4c 00 4f 00 47 00 4f 00 20
00 49 00 4d 00 50 00 20 00 32 00 31 00 2e 00 70 00 6e 00 67 00 22
]
signal time=1672220102.655492 sender=:1.367 -> destination=(null
destination) serial=5 path=/; interface=org.kde.kf5auth; member=remoteSignal
int32 1
string "org.kde.kcontrol.kcmsddm.save"
array of bytes [
00 00 00 00 00 00 00 00 00 00 00 02 ff ff ff ff
]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20221230/1e0d8ee1/attachment.htm>
More information about the Plasma-devel
mailing list