Portál AbcLinuxu, 12. května 2025 07:45
signal sender=:1.14 -> dest=(null destination) serial=63 path=/org/gtk/Private/RemoteVolumeMonitor; interface=org.gtk.Private.RemoteVolumeMonitor; member=MountAdded string "org.gtk.Private.UDisks2VolumeMonitor" string "0x21cf1c0" struct { string "0x21cf1c0" string "ZIGBY_HONBA_ZA_POKLADEM" string ". GThemedIcon media-optical-dvd-rom media-optical-dvd media-optical media" string "" string "file:///run/media/mu/ZIGBY_HONBA_ZA_POKLADEM" boolean true string "0x2184a50" array [ string "x-content/video-dvd" ] string "gvfs.time_detected_usec.1346133729330766" array [ ] }Protože "umím" jen tak trochu bash, hledal jsem nějaký CLI prográmek, který by ten signál poslal. Bohužel dbus-send neumí "struct" ani vnořené (nested) věci a nic lepšího jsem nenašel. Takže to vypadá na Python-API k D-Bus. Jenže syntaxe uvedená např. zde je pro mne trochu nejasná a hlavně netuším, jak přepsat výše tučně uvedené do formy parametrů funkce org.gtk.Private.RemoteVolumeMonitor.MountAdded(zpráva)... Poradíte někdo? (AKA: napíšete syntaxi té zprávy?)
Řešení dotazu:
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.