mokasin / apw

Small and simple Awesome WM widget to control volume of Pulseaudio.
37 stars 33 forks source link

Wait for pacmd process to end before updating values #9

Closed jarnoharno closed 10 years ago

jarnoharno commented 10 years ago

Sometimes values are read from pacmd before the first execution of pacmd was able to update them. This can cause the mute status to be left in the wrong state and displayed incorrectly. Also you would have to press the mute button twice in order to toggle mute back to its old state.

This patch fixes the issue by waiting for the first pacmd process to end before updating the new values.

mokasin commented 10 years ago

Looks like a hack to me. But since I don't know a better solution either…

Thx!

jarnoharno commented 10 years ago

:)