Xpra: Ticket #406: fix appindicator so we can use it for forwarding system trays

I'm not even sure this is possible, but since Ubuntu does not support the regular StatusIcon correctly anymore (and with newer versions, it simply does not show up at all), better have something - even something ugly.

And this is going to be ugly. Their API is an ugly joke:

First, just like with OSX (#404), we don't know the location of the appindicator until it is used, and even then finding the exact coordinates is a complete nightmare (see https://bugs.launchpad.net/screenlets/+bug/522152/comments/11)

Then we can't just catch the events we want (hover, clicks), we only get the option of having a menu (how convenient and modern - NOT!), so we will have to populate this menu with something - maybe have one entry for each action (left click, right click)... but we don't even know which clicks do anything at the other end.

Can someone from Ubuntu please fix this - it's their horrible mess.


Thu, 08 Aug 2013 08:22:25 GMT - Antoine Martin: description changed

See also #636

Mon, 08 Oct 2018 08:47:07 GMT - Antoine Martin: status changed; resolution set

That thing is best forgotten.

Most of the Ubuntu wiki pages lead to 404s. It never worked properly, and is now causing crashes under 18.04 with unity.

python3 -c "from gi.repository import AppIndicator3;AppIndicator3.Indicator()"


Tue, 26 Feb 2019 14:33:29 GMT - Antoine Martin:

See also #2179 / #1818

Wed, 06 Mar 2019 06:07:03 GMT - Antoine Martin: status changed; resolution deleted

Needed because statusicon is now even more broken..

Wed, 06 Mar 2019 06:19:03 GMT - Antoine Martin: status changed; resolution set

Fixes in:

Thu, 07 Mar 2019 05:27:50 GMT - Antoine Martin:

Will follow up in #2197

Fri, 08 Mar 2019 03:20:55 GMT - Antoine Martin:

More fixes:

Wed, 24 Jul 2019 10:20:10 GMT - Antoine Martin:

Related tickets: #2161, #2197, #2242, #476

Thu, 05 Mar 2020 11:59:44 GMT - Antoine Martin: milestone changed

Sat, 23 Jan 2021 04:54:29 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/406