christophgysin / pasystray

PulseAudio system tray
GNU Lesser General Public License v2.1
448 stars 43 forks source link

Lost icon after upgrade to 0.8.0-1 #151

Closed sbbddz closed 3 years ago

sbbddz commented 3 years ago

Hi, today I noticed that after updating my system (running Arch Linux with dwm as my window manager) pasystray icon disappear from my system tray.

Here is the before and the after: before_update_pasystray >>> after_update_pasystray Icon however, still works and its clickable. Haven't tested it in another desktop environment or window manager. Still possible to be some kind of issue with my setup, I'll continue researching.

Version not working: 0.8.0-1 Arch Linux with dwm as window manager Version working: 0.7.1

Thanks for your attention!

stm28304 commented 3 years ago

Same here. I use arch also; but openbox.

kofm commented 3 years ago

Hi, today I noticed that after updating my system (running Arch Linux with dwm as my window manager) pasystray icon disappear from my system tray.

Here is the before and the after: before_update_pasystray >>> after_update_pasystray Icon however, still works and its clickable. Haven't tested it in another desktop environment or window manager. Still possible to be some kind of issue with my setup, I'll continue researching.

Version not working: 0.8.0-1 Arch Linux with dwm as window manager Version working: 0.7.1

Thanks for your attention!

Exactly the same for me, tried changing icon theme but it always pick up light version image

aimixess commented 3 years ago

Hi,

Same problem here with awesomewm 2021-11-10-123422_45x28_scrot. I also launch it with -t option but the tooltip is still appearing. 2021-11-10-123946_127x39_scrot

cyberpunkrocker-zero commented 3 years ago

Same issue here. On my Arch desktop (Awesome), the icon turned black, which is a very bad idea, because I'm using very dark grey as a systray background. On my Arch laptop (i3), the icon turned white.

I'm going to stick with pasystray-0.7.1 until this is fixed...

What was the big idea behind the change, anyway?

christophgysin commented 3 years ago

Can you check if this is caused by using symbolic icons? E.g. by commenting out the lines: https://github.com/christophgysin/pasystray/blob/master/src/ui.c#L155-L158

aimixess commented 3 years ago

Hi,

I tried and have the white icon back 2021-11-11-221638_52x28_scrot.

It also solve the problem I had with -t switch but not in the right way : tootltip is not working with or without.

arash-rohani commented 3 years ago

Can you check if this is caused by using symbolic icons? E.g. by commenting out the lines: https://github.com/christophgysin/pasystray/blob/master/src/ui.c#L155-L158

That fixed the color issue for me as well.

sbbddz commented 3 years ago

Works for me after removing the code lines mentioned earlier!

christophgysin commented 3 years ago

Could someone test if PR #153 fixes it? It should use the standard icons by default, and only use the symbolic ones when started with --symbolic-icons.

aimixess commented 3 years ago

Could someone test if PR #153 fixes it? It should use the standard icons by default, and only use the symbolic ones when started with --symbolic-icons.

I just pull symbolic-icons branch and compile again and icon is still white, it seems to work. Symbolic icons appear if I put the --symbolic-icons switch.

arash-rohani commented 3 years ago

The branch works correctly. But I just realized something. The problem with symbolic icon appearing as black even though we are using a dark theme is panel specific. Because I was not using another systray application that uses symbolic icons I never noticed that. For example "tint2" panel doesn't respect the dark theme when using symbolic icons but when I tested the exact same thing for "xfce4-panel" and "i3bar" they show the white symbolic icons. If @christophgysin wants to make symbolic icons the default from now on, as long there's an option to opt out (like --no-symbolic-icons) it should be fine. Either way works.

cyberpunkrocker-zero commented 3 years ago

IMHO no program should ever force users to use symbolic icons, there should always be an option.

jfly commented 3 years ago

Excellent point, @arash-rohani! I did some digging, and it turns out that this is really just a bug with my tray manager (polybar): https://github.com/polybar/polybar/issues/2235. So I'm not sure that pasystray really should make any changes here. Instead, if there are other tray managers with similar bugs, they should just get fixed.

@cyberpunkrocker-zero I'm not sure I agree: at the end of the day, it seems to me that it should be up to the application developers to decide what their application should look like. If anything, symbolic icons are nice because they give the end user some flexibility in how they end up being displayed.

fuelen commented 3 years ago

I have the same issue with xmobar

jfly commented 3 years ago

@fuelen that can't be right: xmobar doesn't actually have support for systray icons. Are you using something else in addition to xmobar?

fuelen commented 3 years ago

ah, you're right. I use stalonetray with enabled transparency, so I have black icon on almost black background

jfly commented 3 years ago

IMO, that's a bug/missing feature with stalonetray. It should be able to set up this _NET_SYSTEM_TRAY_COLORS hint for you to tell tray icons what color they should be.

psamim commented 3 years ago

I have the same problem using awesomewm.

jfly commented 3 years ago

@psamim that also sounds like a bug/missing feature in awesomewm, but I guess they're aware of this issue, and it doesn't sound like they're interested in supporting it =( https://www.mail-archive.com/awesome@naquadah.org/msg05924.html.

christophgysin commented 3 years ago

It sounds like lots of apps still have issues with symbolic icons. I'm happy to default back to the normal icons and let users opt-in to symbolic icons. :+1: or :-1: ?

arash-rohani commented 3 years ago

@christophgysin I think that would be best. The silver lining is that so many bugs were found because of this update!

jfly commented 3 years ago

Yeah, I didn't know anything about symbolic icons before this change!

n-peugnet commented 3 years ago

I had this problem using DWM with the systray patch. As a workaround I added this rule to my GTK css ~/.config/gtk-3.0/gtk.css to change the color of the symbolic icons:

window > image {
        color: #ddd;
}

I guess it has to be tweaked depending on the DE or panels.

linnabraham commented 3 years ago

@n-peugnet Thanks a bunch man....Solved my issue as well.

karthanistyr commented 2 years ago

@christophgysin perhaps could we hope for a minor release with this fix ? :pray:

OrionRandD commented 10 months ago

I have the same problem using awesomewm.

I have the same problem using pasystray on mode-line... pasystray just disappeared from the right-top icons... after a right-now upgrade on my debian system 10 min. ago, before the upgrade, it was showing up... Fortunately, I can still call pavucontrol through Alt-F2 Something is not right with pasystray app...

liskin commented 10 months ago

I fixed this via https://github.com/liskin/dotfiles/commit/e26f782f54b765447c260b58461d4c2a0c7a01d0, and other people fixed it via https://github.com/nbarrientos/dotfiles/commit/e4dc6ec9b265d5959ed91060e83cb21067ebf8d2

OrionRandD commented 10 months ago

I fixed this via liskin/dotfiles@e26f782, and other people fixed it via nbarrientos/dotfiles@e4dc6ec

Thx