gnome 3 tray icon?

Asked by caetano veyssières

Hi,
I'm using Gnome 3.34.2 on Ubuntu 19.10
Is there a way to get the Xpad tray icon on it?

Question information

Language:
English Edit question
Status:
Answered
For:
Xpad Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Arthur Borsboom (arthurborsboom) said :
#1

This is a long standing issue with the (deprecated) GTK tray icon and Ubuntu.
I am not sure how to fix this; I need help from another GTK developer.

See also:

https://bugs.launchpad.net/xpad/+bug/1784817

If you know someone willing to help out, I am all ears.

Revision history for this message
caetano veyssières (chameleonscales) said :
#2

Thank you for this response. I don't know any GTK developer. Have you asked for help on their Gitlab? This seems like a big deal to me. Xpad has, to my knowledge, no real alternative. All other sticky note apps I've tried have more cluttered UIs or less efficient ways to access stickies. And on the other side GNOME is the most widely used D.E.
I hope some GTK developer could see the importance of getting this fixed, especially if it's a long standing issue.

Revision history for this message
Arthur Borsboom (arthurborsboom) said :
#3

In the past I have asked several times for help, but I did not receive a response.
So I have decided to let it rest, until the help comes to me. :)

From time to time, a happy developer knocks on the door and offers his help.
Let's see...

Revision history for this message
Umang Jain (mailumangjain) said :
#4

Ubuntu uses libappindicator [1] (which is a gnome-shell extension) for showing tray icons. If an application has support to use that, the tray icon should *ideally* show up in the tray-icon placeholder.

I personally use Telegram, Dropbox and Slack (.debs and also have tried flatpak-versions of these) and it seems to work flawlessly with the tray-icons. The tray-icons has nothing to do with GTK or gnome-shell IMO, just need to make sure it works with [1] (which is a default gnome-shell extension on Ubuntu)

[1] https://github.com/ubuntu/gnome-shell-extension-appindicator

Revision history for this message
Arthur Borsboom (arthurborsboom) said :
#5

Hi Umang,

Thanks for helping out.

Xpad is a GTK application and uses the GtkStatusIcon [1] to show the tray icon with a menu and keyboard shortcuts. This is a GTK feature. Therefor I disagree that tray-icons have nothing to do with GTK.

I am interested in a guide to replace the deprecated GtkStatusIcon, with something that works for the most common desktop environments and is easy to replace the current GtkStatusIcon in Xpad.

Is the libappindicator that replacement?
If so, is there a detailed guide how to migrate from GtkStatusIcon to libappindicator ?
Will the libappindicator work for most common desktop environments, such as?

Gnome (GTK)
KDE Plasma (QT)
Cinnamon
Mate
Unity
Xfce
Lxqt (Qt)
Enlightenment
Pantheon

If not, which approach would you suggest?

[1] https://developer.gnome.org/gtk3/stable/GtkStatusIcon.html

Revision history for this message
Umang Jain (mailumangjain) said :
#6

> This is a GTK feature. Therefor I disagree that tray-icons have nothing to do with GTK.

Yeah, I mis-spoke. Sorry for that.

> Is the libappindicator that replacement?
> If so, is there a detailed guide how to migrate from GtkStatusIcon to libappindicator ?
> Will the libappindicator work for most common desktop environments, such as?

libappindicator is just a gnome-shell extension so it will only work if GNOME shell is running underneath hence by that extension assume a GNOME D.E. underneath. I can't speak for other D.E. but I can take a look around how these pans out on other distributions.

Revision history for this message
Rebeca Ivan (rebeca1) said :
#7

How can I change the icon when using Xpad? I tried to do many times, but I cannot do it. Pls, give me some tips.
https://baldisbasicsonline.com

Can you help with this problem?

Provide an answer of your own, or ask caetano veyssières for more information if necessary.

To post a message you must log in.