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 icons not showing #1469

Closed
cycomanic opened this issue Nov 18, 2017 · 6 comments
Closed

tray icons not showing #1469

cycomanic opened this issue Nov 18, 2017 · 6 comments

Comments

@cycomanic
Copy link

I can not make tray icons show. I've gone through the discussion at #1372 but nothing mentioned there worked for me, neither appindicator icons nore ksni items work. Nothing shows. Attached is the log for swaybar when I start konversation. I'm running sway compiled from source on ubuntu 17.10.
swaybar6.log
Sway cmake output.
cmake.txt

@ddevault
Copy link
Contributor

What software are you using that does not work?

@cycomanic
Copy link
Author

I've tried konversation, tried vlc, tried the script mentioned in the other discussion based on python-kde4: https://github.com/ubuntu/gnome-shell-extension-appindicator/blob/master/indicator-test-tool/ksni.py
clementine (with sni-qt installed). Not sure what other ones to test. It does not seem that there is a tray area even showing. If I add a separator_symbol and tray_padding to very high numbers nothing changes on the bar.

@4e554c4c
Copy link
Contributor

4e554c4c commented Nov 18, 2017

@cycomanic Yep, that's intended. If there aren't any items then tray_padding doesn't do anything. Also separator_symbol doesn't apply to the tray. In your logs it shows that it finds konversation and its icon just fine, so I don't see what's wrong. (perhaps try resetting all those config changes and try again?)

See:

sway/swaybar/tray/tray.c

Lines 324 to 329 in 7c3b0ff

const int item_size = (window->height * window->scale) - (2 * tray_padding);
if (item_size < 0) {
// Can't render items if the padding is too large
return tray_width;
}

If tray_padding is too large then the tray won't render.

@cycomanic
Copy link
Author

OK, just did a check after removing the padding, konversation is working now. None of the other apps are showing I suspect that's due to #1372 ? I thought according to the thread there the ksni.py utility should work?

1 similar comment
@cycomanic
Copy link
Author

OK, just did a check after removing the padding, konversation is working now. None of the other apps are showing I suspect that's due to #1372 ? I thought according to the thread there the ksni.py utility should work?

@ddevault
Copy link
Contributor

Move this discussion to #1372

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

3 participants