Hello,
Could someone point me to what I am doing wrong? I am trying to listen
to udisks2 via dbus and I tried to do it via 2 interfaces,
'org.gtk.Private.RemoteVolumeManager' and via
'org.freedesktop.DBus.ObjectManager' and I cant get the following lua
code to work (I place it at the end of rc.lua).
dbus.connect_signal("org.gtk.Private.RemoteVolumeMonitor", function (...)
naughty.notify({
title = 'Udisks event',
text = 'Some event'
})
end)
Just in case you would like to see the message, which I get via
'dbus-monitor --sesion':
signal sender=:1.229 -> dest=(null destination) serial=79
path=/org/gtk/Private/RemoteVolumeMonitor;
interface=org.gtk.Private.RemoteVolumeMonitor; member=DriveConnected
string "org.gtk.Private.UDisks2VolumeMonitor"
string "0x108e0e0"
struct {
string "0x108e0e0"
string "SD Card Reader"
string ". GThemedIcon drive-removable-media-flash-sd
drive-removable-media-flash drive-removable-media drive-removable drive"
string ". GThemedIcon drive-removable-media-symbolic
drive-removable-media drive-removable drive"
boolean false
boolean false
boolean true
boolean true
boolean true
boolean false
boolean false
boolean false
uint32 0
array [
]
array [
dict entry(
string "unix-device"
string "/dev/mmcblk0"
)
dict entry(
string "unix-device"
string "/dev/mmcblk0"
)
]
string "01hotplug/1357560857820527"
array [
]
}
Cheers,
Ignas
--
To unsubscribe, send mail to [email protected].