[Gambas-user] Dbus unique name seems incorrect

Brian G brian at westwoodsvcs.com
Fri Jan 21 04:47:05 CET 2022


I will give it a try thank you Benoit
--
Thanks
Brian G Thursday, 20 January 2022, 01:37PM -08:00 from Benoît Minisini  g4mba5 at gmail.com :

>Le 20/01/2022 à 22:25, Benoît Minisini a écrit :
> Le 20/01/2022 à 19:50, Brian G a écrit :
>> Hi, yes I checked that but the filter in the db.dbus does not allow : 
>> it changes it to .
>>
>> I did try, Then I looked at the code.
>>
>> I believe the way things are setup that unique names would conflict 
>> with the use of system:// maybe?
>>
>> Anyway I can update the gb.dbus to allow the unique name as defined in 
>> the spec..
>>
>> If that would be ok.
>>
>
> No it won't.
>
> I think you are mistaking the name your application chooses to register 
> to a D-Bus bus with the internal unique name attributed by the D-Bus bus.
>
> This is the later that starts with ':' and that is necessarily unique.
>
> The DBus.Unique property is not related to that. It just tells that you 
> want your application to be launched once, which implies some specific 
> options when registering the custom application name, and other specific 
> code in the 'gb.dbus' component.
>
> Regards,
>
>
>If you need the internal unique name, you can get it with the 
>undocumented property 'DBusConnection._Name'. For example, if you use 
>the system bus, it's 'DBus.System._Name'.
>
>Regards,
>
>-- 
>Benoît Minisini
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220121/35fc104e/attachment.htm>


More information about the User mailing list