[Gambas-user] New gb.form.statusicon component

Adrien Prokopowicz adrien.prokopowicz at ...626...
Mon Jun 29 00:33:10 CEST 2015


Le Sun, 28 Jun 2015 13:13:09 +0200, Benoît Minisini
<gambas at ...1...> a écrit:

> Hi,
>
> In the last revision of the development version, I have implemented a
> new component named 'gb.form.statusicon', that implements the "new"
> system tray protocol, based on DBus.
>
> At the moment, it is only tested with KDE 5, and uses the KDE way of
> implementing that protocol.
>
> I say that, because the only documentation I found (that link provided
> by Adrien) is different from their implementation!
>
> It is impossible for me to test it just now with other desktop using
> that protocol, because you can't anymore install Ubuntu's Unity desktop
> on Kubuntu, it's completely broken.
>
> So if anyone could test it on Unity, KDE4 or Gnome3 to tell me what
> happens, it would be cool.
>
> Just run the gb.form.statusicon project. It will create one StatusIcon,
> and show a form with a Show button that create another StatusIcon.
> Clicking on the icons in the system tray should print debugging
> information. Clicking with the right button on the "Gambas" StatusIcon
> should poup a menu.
>
> Thanks in advance.
>
> Regards,
>

I just made a VM with Ubuntu 15.04 and Unity to test that out, but I
can't get it to work. The program runs, but no icon shows up.

There are quite a few warnings (see attached), but I get these as well
on Plasma 5, and everything works there.

I made some more tests, I installed sni-qt and a program that uses it
(skype), and the icon shows up correctly.
So I ran D-Feet and checked the RegisteredStatusNotifierItems property
of the StatusNotifierWatcher (see attached screenshot).

The Skype icon that shows up is the second one on my screenshot, the
first one being the Gambas one. Both seem to be correctly registered
on both desktops, but only the second one shows up on Unity.

As you said, the link I provided is actually bad, as everyones seems
to use the KDE spec, not the "FreeDesktop" spec (in quotes here,
because the only spec that I managed to find isn't even on their site).

Without proper specification (How can it be so hard to find ?!), I
rely purely on the sni-qt plugin source code[0]. It's not the best,
but it's the only thing that I found that works across desktops.

[0] https://launchpad.net/sni-qt

-- 
Adrien Prokopowicz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus_appindicator.log
Type: application/octet-stream
Size: 2577 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150629/e9120425/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sni-register-watcher.png
Type: image/png
Size: 25562 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150629/e9120425/attachment.png>


More information about the User mailing list