Skip to content
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

IndexError on first run #59

Open
yourealwaysbe opened this issue Mar 2, 2021 · 0 comments
Open

IndexError on first run #59

yourealwaysbe opened this issue Mar 2, 2021 · 0 comments

Comments

@yourealwaysbe
Copy link

This is using pipewire on Arch Linux. If running pulsemixer --list immediately after booting the system, there is a crash with an IndexError:

$ pulsemixer --list
Traceback (most recent call last):
  File "/sbin/pulsemixer", line 2054, in <module>
    main()
  File "/sbin/pulsemixer", line 1968, in main
    index = 'sink-{}'.format([s.index for s in sinks if s.name == server_info.default_sink_name][0])
IndexError: list index out of range

I guess this is pipewire not initialsing fast enough and returning either an empty list of sinks or not specifying a default sink. It's not a major issue, but could be more defensive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant