Merge ~kissiel/checkbox-support:use-pactl-everywhere into checkbox-support:master
Status: | Merged |
---|---|
Approved by: | Sylvain Pineau |
Approved revision: | e07839e76f77627c0770911cb4eeb685088fffc3 |
Merged at revision: | 30f3175d5f3588f34d074342bc541e619c043bea |
Proposed branch: | ~kissiel/checkbox-support:use-pactl-everywhere |
Merge into: | checkbox-support:master |
Diff against target: |
57 lines (+6/-6) 1 file modified
checkbox_support/scripts/audio_settings.py (+6/-6) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sylvain Pineau (community) | Approve | ||
Review via email: mp+312665@code.launchpad.net |
Description of the change
Switch to pactl from pacmd required change in invocation of 'list devices'
and because pactl list formats output a bit different, so one regex also got
amended.
audio_settings controls the pulse server, not reconfigures it, so following
manpages, pactl is more suited to do it. Also, in pulseaudio-snappy, there is
only pactl.
This MR also fixes a small bug, where presense of --volume arg was checked by 'if not args.volume', which in case of setting volume to 0 failed.
Testing this is a bit of a pain, as the commands changed here are invoked on calling audio_setting's main with different `action`s in sys.argv.
What I did was:
python3 -c "import audio_settings; audio_settings.
python3 -c "import audio_settings; audio_settings.
python3 -c "import audio_settings; audio_settings.
and so on...
+1, tested on 14.04, the same commands work ok.