Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Software => Příkazový řádek a programování pro GNU/Linux => Téma založeno: Martin 007 28 Prosince 2022, 11:34:37
-
Zdravím,
chtěl bych SDDM říct, aby znovu načetl konfiguraci (změna motivu). Zdá se že k tomu používá DBus. Potřeboval bych docílit toho, aby mi dbus-monitor --system vypsal něco takového:
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
]
Případně to možná lze udělat i jinak, ale dpkg-reconfigure sddm mi nepomohlo a restart sddm jaksi vyžaduje odhlášení, takže ten opravdu použít nemíním. Bohužel se mi nepovedlo najít způsob, jak pomocí qdbusu předhodit funkci strukturu.
Poradil byste mi někdo, prosím?
-
Proč se "štítíš" prostého odhlášení (či restartu OS)??
-
Tak nakonec jsem na to přišel. Na live verzi Kubuntu 22.10 to lze realizovat pomocí následujících příkazů:
dbus-send --system / org.kde.kf5auth.remoteSignal int32:1 string:org.kde.kcontrol.kcmsddm.save array:byte:0,0,0,0,0,0,0,0,0,0,0,2,255,255,255,255
nebo
gdbus emit --system --object-path / --signal org.kde.kf5auth.remoteSignal 1 org.kde.kcontrol.kcmsddm.save "[ byte 0,0,0,0,0,0,0,0,0,0,0,2,255,255,255,255 ]"
-
Protože mi přijde zbytečné se dvakrát přihlašovat.
Mám vadný HDD, tak jsem odkázán na live verzi, takže restartem OS bych se dostal do výchozího stavu.
-
Jaký je důvod provozovat vadný HDD?
Jestli jsi tak moc chudý, že nemáš 100 - 200,- Kč na bazarový HDD, tak by se snad nějaký nevadný našel.
Ale jinak supr práce - vlastně nechápu, jak někdo vždycky může na něco takového přijít ..
-
Ale jinak supr práce - vlastně nechápu, jak někdo vždycky může na něco takového přijít ..
No to je tak, když je někdo chytřejší než bohatší ;-)
Ale taky klobouk dolů; lidí, co umí věci řešit do hloubky a systémově, je čím dál míň.