-
Notifications
You must be signed in to change notification settings - Fork 19
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
Wait for tray #81
Comments
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: #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: Line 119 in cf0f7ed
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 |
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 |
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 |
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?
The text was updated successfully, but these errors were encountered: