Q: how to save changes to config files that get updated?

for /usr/share/pipewire/pipewire.conf i manually edit the default.clock.allowed-rates pref every time pipewire is updated and i’d like to avoid that

i know i can save the whole file in something like ~/.config/pipewire but i don’t want to overwrite the entire original file - i know (i think) there’s a way to save only the default.clock.allowed-rates fragment in the home directory and have the pref take precedence over the one in /usr/share/pipewire/pipewire.conf but i don’t know how???

As it states right at the top of /usr/share/pipewire/pipewire.conf:

# It is also possible to place a file with an updated section in
# /etc/pipewire/pipewire.conf.d/ for system-wide changes or in
# ~/.config/pipewire/pipewire.conf.d/ for local changes.

Note what function each property is a part of and reproduce it in your custom pipewire.conf. In your case, it might look like this:

context.properties = {
    default.clock.allowed-rates = [ 48000 ]
1 Like

i saw that but i assumed i needed to copy the whole section

thanks much!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.