Closed musjj closed 1 year ago
This issue has surfaced approximately four weeks ago. It seems likely that the root cause may be a modification in PulseAudio, its API, or some other related library. This is noteworthy because Volctl, which has been stable for several years, hasn't undergone any changes that could explain this new problem. Unfortunately, due to time constraints, I haven't been able to investigate the cause of this unexpected behavior.
It looks like the problem is not with pulseaudio but with it failing to create a status icon. Can you clarify?
Looks like that it's an old problem: https://github.com/buzz/volctl/issues/56
As the commenter mentioned, other tray applications doesn't suffer from this problem. I wonder what do they do differently?
A few weeks ago, something changed that affected the functionality, but not within Volctl itself. The link you provided is relevant; I'm experiencing the same issue now. As a temporary solution, I've had to adjust the initialization settings of Volctl and set a waiting time. However, this is merely a workaround and not a proper solution to the problem.
Looks like the fix is pretty simple. The culprit is this line:
Removing it fixes the problem.
It tries to check if icon is embedded or not, but I'm not really sure if it's necessary. It'll automatically embed itself when the tray is ready.
I'm guessing that it's intended to check if there's a problem, but isn't there a better way? I'd assume that as long as Gtk.StatusIcon()
isn't throwing any exceptions, things should work just fine.
Nice! Try to create PR and @buzz look on it, thx!
I'm not really sure how well it works with Wayland though. What happens when statusnotifier
isn't installed when volctl
is launched? Will Gtk.StatusIcon
fail silently or does it correctly throw an error?
I'm not really sure how well it works with Wayland though. What happens when
statusnotifier
isn't installed whenvolctl
is launched? WillGtk.StatusIcon
fail silently or does it correctly throw an error?
This issue is not related to Wayland. Check #39 instead.
Closing this issue, as it is a dup of #56. I reopened the original issue and kindly ask to continue the discussion there.
I think you misunderstood my comment. What I am asking is the impact of the change I proposed above on Wayland systems. The solution above works perfectly on X for me, but since I don't use Wayland, I can't predict what kind of impact it would have.
But it seems that volctl
isn't actually supported on Wayland at all, so I guess it doesn't really matter.
Is there a way to wait for the tray before erroring out? I have a service like this:
But it errors on startup because the tray is not ready yet:
Other tray services does not seem to have this problem. Is there a way to handle this problem?