-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix reconnecting to PulseAudio, reattaching to devices #195
base: master
Are you sure you want to change the base?
Conversation
So this PR does reconnect the devices if you reinstall from source from the commandline without restarting wingpanel. However, this only works if the indicator is already installed. If you If you are developing a wingpanel indicator you should, in my opinion, always restart wingpanel after installing revised code otherwise there is no guarantee that the new code is actually running (it probably isn't). I havent been able to test what happens if a new version of the indicator is installed by an update as there is only one version in the repository - it is possible that the devices are disconnected and so this PR would still be useful. I'll see if I can simulate such an upgrade somehow. |
OK, I uninstalled the indicator with apt. Then I installed the master version from source with a fake version number of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See previous comments. Are you able to demonstrate any other issue that this PR would solve? Or get it to connect all the devices if installed after purging?
@jeremypw Thanks for the review, and sorry for the delayed followup. I think the only issues this PR solves are ensuring the device list stays available and the infinite dis-/re-connect to PulseAudio. The first is just a minor usability inconvenience, and the second, while a bit spammy on the logs, should likewise have little impact. I've so far not had any success with reconnecting devices after purging, so not really sure how to proceed with that particular fix. Since the issues being addresses are really low impact, I'm content with closing this out, but can continue investigating fixes for the purge-related issue. |
@bluesabre Thanks for continuing to look into this. I'll convert this to draft while you are looking into a fix for install after purge. |
After some trial and error and logging, I identified some issues with reloading the indicator.
This PR fixes this by:
I think this is a fairly clean way to address the issue, but please let me know if you'd like me to make any changes!
Update 4/29
Fixes #194