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

load_pw_modules: Make it no-op if no pw-cli or pipewire is not running #8

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

elboulangero
Copy link
Contributor

@elboulangero elboulangero commented Mar 13, 2024

With this change, the script exits gracefully if ever it runs on a system where pipewire is not installed or not running.

Note that 'pw-cli quit' was added in pipewire 0.3.38, so we're good since we require 0.3.58 at least.

While we're here, we also drop a stray comment (it comes from load_pa_modules.sh, however the code associated with this comment is gone, cf. 1), and we replace it by a comment to explain what the next code block does.

With this change, the script exits gracefully if ever it runs on a
system where pipewire is not installed or not running.

Note that 'pw-cli quit' was added in pipewire 0.3.38, so we're good
since we require 0.3.58 at least.

While we're here, we also drop a stray comment (it comes from
load_pa_modules.sh, however the code associated with this comment is
gone, cf. [1]), and we replace it by a comment to explain what the next
code block does.

[1]: https://github.com/neutrinolabs/pulseaudio-module-xrdp/blob/791dc3f95cd099adb1075708fb46069e0c1257bb/instfiles/load_pa_modules.sh#L6-L13
@elboulangero elboulangero mentioned this pull request Mar 26, 2024
@metalefty metalefty merged commit e22c5c1 into neutrinolabs:devel Mar 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants