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

Tray does not show up #4100

Closed
dancju opened this issue Apr 28, 2019 · 7 comments
Closed

Tray does not show up #4100

dancju opened this issue Apr 28, 2019 · 7 comments

Comments

@dancju
Copy link

dancju commented Apr 28, 2019

The tray icons do not show. If I run another bar through swaybar, an exactly identical bar shows and still without tray icons, and the terminal has these output:

$ swaybar --bar_id bar-0
i3status: trying to auto-detect output_format setting
i3status: auto-detected "i3bar"
2019-04-28 19:11:47 - [sway-1.0/swaybar/tray/watcher.c:185] Failed to acquire service name: File exists
2019-04-28 19:11:47 - [sway-1.0/swaybar/tray/watcher.c:185] Failed to acquire service name: File exists
^CExiting due to signal.

These lines also appeared in the log.

Here is the line printed the error log.
https://github.com/swaywm/sway/blob/master/swaybar/tray/watcher.c#L185

@rumpelsepp
Copy link

The support for tray icons is not fully implemented yet. I think the following links might be interesting for you:

@dancju
Copy link
Author

dancju commented Apr 29, 2019

I don't get it. Is it not implemented at all, or some features is missing?
My tray is not shown at all, is this the supposed behaviour?

@rumpelsepp
Copy link

AFAIK there are different APIs to let your app notify that there is tray functionality available (there is a list in the referenced issue). Not all of them are implemented.

@Kommynct
Copy link

Depending on your distro, try installing libappindicator-gtk3 or your distros equivalent package.

@dancju
Copy link
Author

dancju commented Apr 30, 2019

@Kommynct Thank you! I installed libappindicator-gtk3 and had sway restarted, but nothing changed. Even the error information is still

2019-04-28 19:11:47 - [sway-1.0/swaybar/tray/watcher.c:185] Failed to acquire service name: File exists

@QasimK
Copy link

QasimK commented Oct 22, 2019

(I installed libappindicator-gtk3 and the tray icon did appear for me at least)

@ObiWahn
Copy link

ObiWahn commented Nov 17, 2021

My problem was that I did not have a DBUS session. After creating systemd user services the icons started to appear in the swaybar after the next login. If you struggle make sure that set | grep DBUS shows something like DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants