Results 1 to 10 of 10

Thread: Tray Icons Under Unity

  1. #1
    Join Date
    Oct 2012
    Beans
    4

    Tray Icons Under Unity

    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

  2. #2
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Tray Icons Under Unity

    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.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  3. #3
    Join Date
    Oct 2012
    Beans
    4

    Re: Tray Icons Under Unity

    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?

  4. #4
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: Tray Icons Under Unity

    Quote Originally Posted by Brandon9000 View Post
    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!

  5. #5
    Join Date
    Oct 2012
    Beans
    4

    Re: Tray Icons Under Unity

    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?

  6. #6
    Join Date
    Jan 2006
    Beans
    266
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Tray Icons Under Unity

    try cinnamon. it will solve the issue.

  7. #7
    Join Date
    Apr 2005
    Location
    My dreams
    Beans
    3,555
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Tray Icons Under Unity

    Quote Originally Posted by Brandon9000 View Post
    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.

  8. #8
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: Tray Icons Under Unity

    <deleted>
    Last edited by markbl; November 1st, 2012 at 01:00 AM. Reason: error

  9. #9
    Join Date
    Sep 2007
    Location
    Norway
    Beans
    27
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Tray Icons Under Unity

    Quote Originally Posted by Brandon9000 View Post
    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

    Code:
    gsettings get com.canonical.Unity.Panel systray-whitelist
    and possibly try adding your binary to the list, e.g.

    Code:
    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.

  10. #10
    Join Date
    Oct 2012
    Beans
    4

    Re: Tray Icons Under Unity

    Quote Originally Posted by karlstad View Post
    From what I recall, you can whitelist apps for the "systray" in Unity with gsettings. Try

    Code:
    gsettings get com.canonical.Unity.Panel systray-whitelist
    and possibly try adding your binary to the list, e.g.

    Code:
    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]#
    Last edited by Brandon9000; November 1st, 2012 at 02:55 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •