DBus statusnotifier (aka systray) daemon/bridge for GTk/XFCE environments?

David Edmundson david at davidedmundson.co.uk
Mon Jan 22 10:26:32 UTC 2018


On Sun, Jan 21, 2018 at 6:06 PM, René J. V. Bertin <rjvbertin at gmail.com>
wrote:

> Hi,
>
> > I think you've only half analysed this. If nothing is really listening on
> > DBus it will fall back to legacy X which will work on XFCE.
>
> Where did I miss this in the code? The createPlatformSystemTrayIcon()
> functions
> in qtbase/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp
> are
> pretty clear: they return NULL unless isDBusTrayAvailable() returns true.
>

You missed reading the code that calls this in
src/widgets/util/qsystemtrayicon_x11.cpp which will make an X system tray
if the platform doesn't.

>
> > You'll get into this situation if you have a StatusNotifierItemWatcher
> > (typically a kded module from p-w) but no StatusNotifierItem host (sys
> tray
> > support)
>
> In fact, any Qt application that tries to put up a systray icon. At least
> when
> the plasma-integration plugin is installed.
>
> I did find a solution though, ultimately:
> https://github.com/equeim/snw-plugin
>
> Which is just about exactly what I asked for :)
>
> Hope this helps others,
>
>


> R.
>
> PS: Ah, when I move the platform integration plugin aside I indeed get a
> systray
> icon. Hmmm...
>

Please don't tell me you're using the Plasma platform integration plugin
under XFCE?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180122/e0b30e0c/attachment.html>


More information about the Plasma-devel mailing list