PDA

View Full Version : [ubuntu] Tray Icons Under Unity



Brandon9000
October 29th, 2012, 10:09 PM
I have an application which people install on various Linux distributions including Ubuntu. The application creates a tray icon for itself. Recently, I have been told, and I have personally verified, that the icon doesn't display under Unity. What can I do about this? I have tried the whitelist thing about twenty times and it doesn't have any effect, even when I log out and back in.

Thanks in advance.

Brandon

grahammechanical
October 29th, 2012, 11:47 PM
The icons that we see in the top panel are called app-indicators. If the developers of that application have not integrated the application into Unity by giving it an app-indicator that can go in the top panel, then there is little that you can do about it. In my opinion.

Brandon9000
October 30th, 2012, 09:50 PM
I'm the developer. I want it to keep working on Ubuntu as it has in the past before Unity. Are you saying that the only way to make the tray icon show is to do Unity specific programming?

markbl
October 31st, 2012, 12:40 AM
I'm the developer. I want it to keep working on Ubuntu as it has in the past before Unity. Are you saying that the only way to make the tray icon show is to do Unity specific programming?
Yes. And believe it or not, if you want your icon to appear always in the gnome-shell panel (which is the other new linux new 3D desktop, e.g. on Fedora), then you have to code to a completely different api there also. Ridiculous isn't it, but that is what you get when young developers take over and do their own thing. Try finding some decent documentation on all this stuff btw!

Brandon9000
October 31st, 2012, 03:49 PM
I know what you mean. If this is as complete and immutable as you say, it will soon be reversed. I found countless Web pages claiming I could make my app appear by adding it to the whitelist, but changing it to 'all' didn't work. Is there any documentation on this (albeit less than decent) that I could use as a starting point?

mosaic2s
October 31st, 2012, 05:55 PM
try cinnamon. it will solve the issue.

kostkon
October 31st, 2012, 07:59 PM
I know what you mean. If this is as complete and immutable as you say, it will soon be reversed. I found countless Web pages claiming I could make my app appear by adding it to the whitelist, but changing it to 'all' didn't work. Is there any documentation on this (albeit less than decent) that I could use as a starting point?
You can start from here (http://developer.ubuntu.com/resources/technologies/application-indicators/).

markbl
November 1st, 2012, 12:04 AM
<deleted>

karlstad
November 1st, 2012, 12:45 AM
I have an application which people install on various Linux distributions including Ubuntu. The application creates a tray icon for itself. Recently, I have been told, and I have personally verified, that the icon doesn't display under Unity. What can I do about this? I have tried the whitelist thing about twenty times and it doesn't have any effect, even when I log out and back in.

Thanks in advance.

Brandon

From what I recall, you can whitelist apps for the "systray" in Unity with gsettings. Try


gsettings get com.canonical.Unity.Panel systray-whitelist

and possibly try adding your binary to the list, e.g.


gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'yourapp']"

You probably need to log in and out again to see if it works.

Brandon9000
November 1st, 2012, 02:43 PM
From what I recall, you can whitelist apps for the "systray" in Unity with gsettings. Try


gsettings get com.canonical.Unity.Panel systray-whitelist

and possibly try adding your binary to the list, e.g.


gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'yourapp']"

You probably need to log in and out again to see if it works.

Modifying the whitelist the first thing I tried and I tried it no less than ten times. It has no effect.

However:

[root.linux systray]# gsettings get com.canonical.Unity.Panel systray-whitelist
No such schema 'com.canonical.Unity.Panel'
[root.linux systray]#