another other method, if it is workingRun dbus-monitor and it will react for you. Small stand-alone example:
dbus-monitor --system "type='signal',sender='org.freedesktop.UDisk +s2',interface='org.freedesktop.DBus.Properties'" | perl -lne' if (/^\s+ ([[:xdigit:]]{2} \s)+/msx) { $r .= $_; } elsif (/\s+\]/ && $r) { my $mount = join "", map { chr hex $_ } grep { !!$_ && $_ +ne "00" } split /\s+/, $r; system "xdg-open", $mount; $r = ""; } '
In reply to Re: net::dbus example
by daxim
in thread net::dbus example
by didiw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |