[Gambas-user] DBus Explorer seems different?
Bruce Steers
bsteers4 at gmail.com
Thu Dec 1 12:21:23 CET 2022
It can't be right Ben.
Now ALL DBus commands show no args at all.
By the way. I added this really useful feature to the DBusExplorer that I
thought was worth a mention as it is very useful indeed...
*Public Sub tvDbus_DblClick() Dim hTree As TreeView = Last Print
hTree.Current.Key Dim pr As String[] = Split(hTree.Current.ParentKey,
"|") If pr.Count = 4 Then Dim sCom As String = lblsignature.Text If
Right(sCom, 1) <> ")" Then sCom = Replace(sCom, ")", ") '") Dim s As
String = "DBus[\"" & pr[0] & pr[1] & "\"][\"" & pr[2] & "\", \"" & pr[3] &
"\"]." & sCom Clipboard.Copy(s, "text/plain") EndifEnd*
Now if i double click the UDisk2 Mount command i get this copied to my
clipboard...
DBus["system://org.freedesktop.UDisks2"]["/org/freedesktop/UDisks2/block_devices/sda2",
"org.freedesktop.UDisks2.Filesystem"].Mount(options As Collection) ' As
String
Like I say it's worth a mention as it's a very useful feature to be able to
get a usable command string from the explorer.
Respects
BruceS
On Wed, 30 Nov 2022 at 20:55, Benoit Minisini <
benoit.minisini at gambas-basic.org> wrote:
> Le 30/11/2022 à 20:13, Bruce Steers a écrit :
> > Ahh, Seems built in DBus explorer is doing something fairly wrong
> > looking again at that snapshot as it's listing "options as collection"
> > quite a, unusual amount.
> >
> >
> > On Wed, 30 Nov 2022 at 19:09, Bruce Steers <bsteers4 at gmail.com
> > <mailto:bsteers4 at gmail.com>> wrote:
> >
> > Oddly one of my programs that uses a previous version of Fabiens
> > gb.disks seems to not be able to mount any more. and i didn't change
> > anything.
> >
> > So i looked at the new built in DBus explorer to find UDisk2
> > filesystem Mount now has 2 args Label and Options according to that.
> >
> > Yet in the original DBus explorer from the farm it only shows one
> > arg (see attached pic, orig DBus explorer is behind the gambas
> > window, both showing the same item but different args)
> >
> > V weird
> > BruceS
> >
> >
> >
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> It's fixed in master.
>
> 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/20221201/f221c297/attachment.htm>
More information about the User
mailing list