nexus511 / gpd-ubuntu-packages

This repository shall provide the base for building ubuntu packages from most of the patches currently used to get linux on the gpd-pocket.
GNU General Public License v3.0
73 stars 4 forks source link

gpdpocket-audio: use pulse/daemon.conf.d instead of diversions #51

Open dario23 opened 6 years ago

dario23 commented 6 years ago

for (at least some of the) config files installed, we could do without dpkg-diverting the original config for our own by using .conf.d subdirectories, one example being the pulse daemon.conf that is installed. instead of diverting away the whole daemon.conf (currently without referencing the original one again, so users miss all future updates to that file) we could create a separate file etc/pulse/daemon.conf.d/90-gpdpocket-no-realtime.conf with just

realtime-scheduling = no

in it. the pulse-daemon.conf(5) man page says the files in daemon.conf.d are read after daemon.conf, so settings in our new file would take precedence over any system settings in daemon.conf, but having gpdpocket-audio package installed wouldn't mean missing other pulse updates anymore.

dario23 commented 6 years ago

note: i think this technique can be used in other places as well, just thought i'd open one issue where there could be discussion about the general opinion on this kind of changes. i'd be happy to provide pull requests if this turns out to be the direction you want this to go in :-)