Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libappindicator tray #21

Closed
Alexays opened this issue Aug 15, 2018 · 58 comments · Fixed by #39
Closed

Libappindicator tray #21

Alexays opened this issue Aug 15, 2018 · 58 comments · Fixed by #39
Labels
enhancement New feature or request

Comments

@Alexays
Copy link
Owner

Alexays commented Aug 15, 2018

Tray beta now shipped :)

Bugs I noticed:

Electron apps

You need libappindicator-gtk3 (added to AUR package)
and launch apps with env XDG_CURRENT_DESKTOP=Unity slack

@Alexays Alexays added the enhancement New feature or request label Aug 15, 2018
@Alexays Alexays added this to the 1.0.0 milestone Aug 16, 2018
@Alexays Alexays mentioned this issue Sep 2, 2018
@Alexays Alexays reopened this Oct 25, 2018
@Alexays Alexays modified the milestones: 1.0.0, 0.1.0 Oct 25, 2018
@ammgws
Copy link

ammgws commented Oct 25, 2018

Is it possible to define which bar the tray icons will show up on (multi-monitor setup)?

@Alexays
Copy link
Owner Author

Alexays commented Oct 25, 2018

Not at the moment, but it's a good feature to have :)

@alecmev
Copy link
Contributor

alecmev commented Oct 26, 2018

I guess I'll report here, instead of spamming issues, since this a beta feature.

When restarting the bar, only Telegram and Keybase icons remain. Slack and Caprine are gone.

Also, Discord never appears at all, for some reason, even with the latest fixes.

@alecmev
Copy link
Contributor

alecmev commented Oct 26, 2018

Upon further usage, it looks like Keybase doesn't re-appear consistently either, only sometimes.

Right-clicking the Keybase tray outright crashes the bar, every time. Other apps crash the bar too when right-clicking, but I can't consistently reproduce it.

Sometimes the bar fails to start. Can't consistently reproduce either, but it eventually happens after launching and killing it repeatedly (segfault, no special error).

Not sure if of any use, but when launching the bar I get these two:

An object is already exported for the interface org.kde.StatusNotifierWatcher at /StatusNotifierWatcher
GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Status Notifier Host with bus name ':1.308' and object path '/StatusNotifierHost' is already registered

Also, Slack's icon doesn't change when there are new messages. Don't know if Slack's/Electron's or Waybar's fault though. May or may not be affecting Caprine and Keybase too, just haven't received any messages in them yet.

@Alexays
Copy link
Owner Author

Alexays commented Oct 26, 2018

Do you have a multi-screen configuration?
And the fact that the slack icon doesn't change is normal, it's just that there's no code to manage the tray change 😆
I can't reproduce the right click :/
edit: got the sigsev i look at it

@alecmev
Copy link
Contributor

alecmev commented Oct 26, 2018

Yep, I see where this is going 🙂 I have two monitors, both have a bar.

@Alexays
Copy link
Owner Author

Alexays commented Nov 16, 2018

@jeremejevs Can your check if the crash is still present in the last commit? :)
edit: I reproduced it, too bad :/

@alecmev
Copy link
Contributor

alecmev commented Nov 17, 2018

Yep, the issue is still there, unfortunately. I have also noticed that in some conditions, if the first icon you right-click on after launching Waybar is Keybase, then right-clicking on other icons still opens Keybase's tray menu. Had that happen with Telegram too. Peculiar.

@Alexays
Copy link
Owner Author

Alexays commented Nov 22, 2018

@jeremejevs I found time to work on it a little bit and it's normally fixed now :) (ba79b4d)

@alecmev
Copy link
Contributor

alecmev commented Nov 27, 2018

Tested, no crashes or mixed up menus, thanks! 🙂

Only issue remaining - no Discord icon.

@Alexays Alexays pinned this issue Dec 23, 2018
@Alexays Alexays removed this from the 0.1.0 milestone Dec 28, 2018
@ghost
Copy link

ghost commented Dec 30, 2018

Telegram icon always has 1 notification
image
and never updates. is it fixable by some library or do i wait for fix in here?

@Alexays
Copy link
Owner Author

Alexays commented Dec 30, 2018

@rvi64 I didn't implement the icon updates, if I find time I will do it next week

@NokiDev
Copy link

NokiDev commented Dec 30, 2018

Hi I don't know if I should create a specific issue, or if trail icons related issues are grouped here.
Tell me and I'll create one.

issue :
Some icons are large, (VLC in my case) and resizes the height of the bar to the height of the icon.
I didn't look, in the code yet, but it don't seems difficult to fix.
I can look into it if needed just help me a bit to dive into the codebase.

@Alexays
Copy link
Owner Author

Alexays commented Dec 31, 2018

@NokiDev Oh, I thought I fixed it, so I'm watching it next week. :)

@Alexays Alexays unpinned this issue Dec 31, 2018
@cjbassi
Copy link
Contributor

cjbassi commented Jan 8, 2019

Also getting the large icon issue with Insync, but the rest work fine.

edit: Just got the issue with the VLC applet and the cone is ginormous although the bar doesn't change size, so just a piece of it is visible 🤣

@Alexays Alexays pinned this issue Jan 8, 2019
@eoli3n
Copy link

eoli3n commented May 14, 2020

Here if tray icon has a menu, it appears under window and is not clickable:
20200514_15h46m59s_grim

@luispabon
Copy link

If somebody stumbles upon this, env XDG_CURRENT_DESKTOP=Unity SOME_ELECTRON_APP is not necessary anymore. Slack works fine on the tray with that value set to sway.

@luispabon
Copy link

@eoli3n I believe that issue is fixed by swaywm/sway@4a27292

@nikto-b
Copy link
Contributor

nikto-b commented Jun 3, 2020

sway 1.4 libappindicator 12.10.0-14 waybar v0.9.2 issues with the menu under window exists

@luispabon
Copy link

@niktob560 as I mentioned earlier it's an issue with sway.

@nikto-b
Copy link
Contributor

nikto-b commented Sep 9, 2020

Waybar v0.9.3 libappindicator 12.10.0.r296-1 and sway 1.5 issue with the menu under window does not existsts

@fauust
Copy link

fauust commented Nov 19, 2020

Hi!
On debian bullseye (11), I can't see any electron app icons (Zulip, Element).

dpkg -l | grep -E '(sway|waybar|libappindicator)'
ii  gir1.2-appindicator-0.1:amd64                     0.4.92-8                            amd64        Typelib files for libappindicator1
ii  gir1.2-appindicator3-0.1:amd64                    0.4.92-8                            amd64        Typelib files for libappindicator3-1
ii  libappindicator-dev                               0.4.92-8                            amd64        allow applications to export a menu into the panel -- development
ii  libappindicator-doc                               0.4.92-8                            all          allow applications to export a menu into the panel -- documentation
ii  libappindicator1:amd64                            0.4.92-8                            amd64        allow applications to export a menu into the panel
ii  libappindicator3-1:amd64                          0.4.92-8                            amd64        allow applications to export a menu into the panel -- GTK3 version
ii  sway                                              1.5-7                               amd64        i3-compatible Wayland compositor
ii  sway-backgrounds                                  1.5-7                               all          Set of backgrounds packaged with the sway window manager
ii  swaybg                                            1.0-2                               amd64        Wallpaper utility for Wayland compositors
ii  swayidle                                          1.6-2                               amd64        Idle management daemon for Wayland
ii  swaylock                                          1.5-2                               amd64        Screen locker for Wayland
ii  waybar                                            0.9.4-1                             amd64        Highly customizable Wayland bar for Sway and Wlroots based compositors

I have tested various environment variables:

env | grep XDG
XDG_CURRENT_DESKTOP=sway
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=sway
XDG_SESSION_ID=12
XDG_SESSION_TYPE=wayland
XDG_VTNR=1

Also XDG_CURRENT_DESKTOP=Unity...

The following works though:

  • Telegram
  • blueman
  • nm-applet
  • nextcloud (not always).

@luispabon
Copy link

What is XDG_SESSION_DESKTOP=Unity supposed to fix anyway? I removed it from my environment some time ago and my tray works fine.

@fauust
Copy link

fauust commented Nov 19, 2020

So, I am not sure if this was the reason (because I was trying to fix another problem with podman and cgroups rights), but I installed dbus-user-session and after a reboot I have now all my icons...

And @luispabon I have just tested removing all the XDG env variables, it works.

@kyak
Copy link

kyak commented Jan 10, 2022

sparkleshare doesn't show the tray icon. Telegram, however, does.

What could be the problem?

@TheGreatestJannet
Copy link

sparkleshare doesn't show the tray icon. Telegram, however, does.

What could be the problem?

I have the same issue with Nextcloud Client

20220306_19h37m18s_grim

Mikaela added a commit to Mikaela/scripts that referenced this issue Oct 15, 2022
@ghost
Copy link

ghost commented Nov 29, 2022

how to define icon theme for the tray? I cannot find a way in the manual

@7ff04da4aa6ac37197e249299066ac30

how to define icon theme for the tray? I cannot find a way in the manual

@875d were you ever able to sort this out? I tried using gsettings as waybar seems to follow the GTK theme, but I'd like only to change the icons on the tray, not on every app

@ghost
Copy link

ghost commented Jan 18, 2023

how to define icon theme for the tray? I cannot find a way in the manual

@875d were you ever able to sort this out? I tried using gsettings as waybar seems to follow the GTK theme, but I'd like only to change the icons on the tray, not on every app

No I didn't. I still have those horrible terrible icons.

@7ff04da4aa6ac37197e249299066ac30

how to define icon theme for the tray? I cannot find a way in the manual

@875d were you ever able to sort this out? I tried using gsettings as waybar seems to follow the GTK theme, but I'd like only to change the icons on the tray, not on every app

No I didn't. I still have those horrible terrible icons.

Well, I just opened this issue, which addresses our woes, in case you'd be interested.

@0atman
Copy link

0atman commented Feb 28, 2023

Still finding Sparkleshare without a tray icon, fyi (though vlc's icon works fine). Thanks for the work here! ❤️

@AdsonCicilioti
Copy link

AdsonCicilioti commented Nov 4, 2023

how to define icon theme for the tray? I cannot find a way in the manual

@875d were you ever able to sort this out? I tried using gsettings as waybar seems to follow the GTK theme, but I'd like only to change the icons on the tray, not on every app

@7ff04da4aa6ac37197e249299066ac30 I believe you must define some strategy via CSS variables (gtk) to obtain the color alternation following the color-scheme key of the org.gnome.desktop.interface schema using gsettings.

@Alexays Alexays unpinned this issue Jan 12, 2024
@pfsalminen
Copy link

Is there a way to specify certain icons to hide or show in the try? If not, is this a possible feature?

@dexslender
Copy link

i'm using youtube-music Desktop and its icon is displayed correctly but when it tries to display the tooltip logs this error:

(waybar:14052): Gtk-WARNING **: 11:40:26.500: Failed to set text 'YouTube Music: deadmau5 & Kaskade - I Remember' from markup due to error parsing markup: Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &

@victorballester7
Copy link

Hello,
I am not able to make my tray appear in my waybar. I have the package libappindicator-gtk3installed and I even tried exporting the variable XDG_CURRENT_DESKTOP=Unity slack but still doesn't work.

Do you have an idea on where may the problem come from?

I am on archlinux.

Thanks in advance!

@jman-schief
Copy link

Hello, I am not able to make my tray appear in my waybar. I have the package libappindicator-gtk3installed and I even tried exporting the variable XDG_CURRENT_DESKTOP=Unity slack but still doesn't work.

@victorballester7 Does this comment help?

@victorballester7
Copy link

Hi! thanks for your answer @jman-schief.

Actually I also tried with sway only but it didn't work either... :(

@victorballester7
Copy link

victorballester7 commented Jun 11, 2024

The problem was that I didn't start the processes nm-applet and blueman-applet, and so I could not see the wifi and blutooth images.

I have though another question. Is it possible to customize the style of the tray, changing the colors of the icons (or even the icons themselves)? I found that there is a hidden config that do some styling:

tray menu {
   background-color: red;
  border-radius: 15px;
}

How can I know all the available options for the styling of the tray a part from menu? Thank you in advance! :)

@apiraino
Copy link

@victorballester7 here the wiki documentation for the tray CSS option. Unsure if you can style the icons themselves, I suspect Waybar cannot intervene in other applications (see also #3328 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

  翻译: