[Gambas-user] Monitoring DBus-Signal ?

zainudin ahmad author.ilmi at ...626...
Sat Jan 7 23:38:44 CET 2017


I think this is a bug from DBusObserver class, (attach pic-1)

On 11/21/16, Hans Lehmann <hans at ...3219...> wrote:
> Am 19.11.2016 um 17:14 schrieb Hans Lehmann:
>> I want to see the signal 'VolumeChanged' sent by the application
>> 'org.gtk.Private.MTPVolumeMonitor' with the interface
>> 'org.gtk.Private.RemoteVolumeMonitor'. The dbus-monitor program shows:
>>
>> signal sender=:1.10 -> dest=(null destination) serial=319
>> path=/org/gtk/Private/RemoteVolumeMonitor;
>> interface=org.gtk.Private.RemoteVolumeMonitor; member=VolumeChanged
>>
>> I am not able to observe this DBus signal. The project is attached.
>> The project follows the documentation under the link:
>> http://gambaswiki.org/wiki/doc/dbus#t4 .
>
> Hello,
>
> this line in attached Project:
>
> $hDBusSignal = New DBusSignal(DBus.Session,
> "org.gtk.Private.RemoteVolumeMonitor", True) As "MySignal"
>
> generated an error.
>
> Example:
>
> USB-Stick in:
> Under Stack.Backstrace in line 19 (DBusSignal.DBusObserver_Message.19):
> Error-Message: Typ mismatch: wanted String, got String[] instead
>
> USB-Stick out:
> Under Stack.Backstrace in line 19 (DBusSignal.DBusObserver_Message.19):
> Error-Message: Typ mismatch: wanted String, got Collection instead
>
> Regards,
> Hans
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic-1.png
Type: image/png
Size: 183807 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20170108/2f8c5827/attachment.png>


More information about the User mailing list