Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Waybar's tray isn't working
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
chinh4thepro
n00b
n00b


Joined: 17 Oct 2022
Posts: 13

PostPosted: Fri Oct 28, 2022 1:49 pm    Post subject: [Solved] Waybar's tray isn't working Reply with quote

I'm currently trying to configure waybar, but can't figure out how to get the tray working. Every time I launch waybar I get:
Code:
[warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity

I have tried exporting the XDG desktop session to Unity but that did nothing. Could someone help me figure it out? Thanks!


Last edited by chinh4thepro on Fri Jan 06, 2023 4:38 am; edited 1 time in total
Back to top
View user's profile Send private message
s0ulslack1
n00b
n00b


Joined: 06 Mar 2022
Posts: 22

PostPosted: Fri Oct 28, 2022 1:59 pm    Post subject: Reply with quote

So echo $XDG_CURRENT_DESKTOP returns correctly and dev-libs/libappindicator are installed? Ignore the warning and minimize something
Back to top
View user's profile Send private message
chinh4thepro
n00b
n00b


Joined: 17 Oct 2022
Posts: 13

PostPosted: Fri Oct 28, 2022 2:26 pm    Post subject: Reply with quote

Yes it is outputting correctly, and libappindicator is installed.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1685

PostPosted: Fri Oct 28, 2022 2:32 pm    Post subject: Reply with quote

I know nothing about waybar, but reviewing the code shows that a warning is always output (without checking anything) for the tray in the code.

https://github.com/Alexays/Waybar/blob/master/src/modules/sni/tray.cpp#L13

Beyond that, I will be of no help
Back to top
View user's profile Send private message
s0ulslack1
n00b
n00b


Joined: 06 Mar 2022
Posts: 22

PostPosted: Fri Oct 28, 2022 3:31 pm    Post subject: Reply with quote

https://stackoverflow.com/questions/59146289/python-gtk-tray-submenu-icon
Does this basic lil script throw an icon in the tray area? You need some specifics here, like what you've tried etc
Back to top
View user's profile Send private message
chinh4thepro
n00b
n00b


Joined: 17 Oct 2022
Posts: 13

PostPosted: Fri Oct 28, 2022 4:39 pm    Post subject: Reply with quote

Yes, it does, but any other application like discord or nm-applet doesn't appear.
Back to top
View user's profile Send private message
spica
Apprentice
Apprentice


Joined: 04 Jun 2021
Posts: 290

PostPosted: Fri Oct 28, 2022 11:20 pm    Post subject: Reply with quote

chinh4thepro wrote:
nm-applet doesn't appear.


Try to emerge nm-applet with appindicator USE flag and then run with additional parameter:
Code:
nm-applet --indicator
Back to top
View user's profile Send private message
chinh4thepro
n00b
n00b


Joined: 17 Oct 2022
Posts: 13

PostPosted: Fri Oct 28, 2022 11:29 pm    Post subject: Reply with quote

That did not work, nm-applet doesn't show up in my tray area.
Back to top
View user's profile Send private message
chinh4thepro
n00b
n00b


Joined: 17 Oct 2022
Posts: 13

PostPosted: Thu Jan 05, 2023 2:14 pm    Post subject: Reply with quote

Sorry for the bump but the tray works on Arch, but not on Gentoo. It shows nm-applet and steam's tray icons, but not discord's.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum