redundant cookie and tdb files when XDG_CONFIG_HOME is set
Summary
On Debian system, when XDG_CONFIG_HOME is set, Pulseaudio config files are generated both in ~/.config/pulse and in the correct location as well.
Note that when rm -rfv $HOME/.config/pulse
is run at any point, Pulseaudio continues working without any apparent side-effects, and the files in $HOME/.config will be regenerated upon next login.
Environment
See attached pa-info.txt
Steps to reproduce
On Debian system, set the following in /etc/security/pam_env.conf:
XDG_CONFIG_HOME DEFAULT=@{HOME}/local/config
XDG_DATA_HOME DEFAULT=@{HOME}/local/share
XDG_STATE_HOME DEFAULT=@{HOME}/local/state
XDG_CACHE_HOME DEFAULT=@{HOME}/local/cache
What is the current bug behavior?
The files pulse/{cookie,*.tdb,*sink,*source}
are generated both in $HOME/.config/
AND in $XDG_CONFIG_HOME/
.
What is the expected correct behavior?
Pulseaudio configuration should only be generated in $XDG_CONFIG_HOME, or (if unset) $HOME/.config as per XDG directory specification.
Additional information
Here is a listing of all config files generated with md5sums:
172bb2db80d187861fb434dbd60f934c .config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-card-database.tdb
0ed597238b4f80ddff10fc7916b3cc80 .config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-default-sink
68b329da9893e34099c7d8ad5cb9c940 .config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-default-source
fd48558623a96597813d005f01e958dc .config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-device-volumes.tdb
5fe8a01615a1ffcd2df8eec73798fbda .config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-stream-volumes.tdb
c792b8434ce92ffbee87177614c833aa .config/pulse/cookie
961f8adbd5a0b93ec1bcb3ddbb7c57a8 local/config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-card-database.tdb
68b329da9893e34099c7d8ad5cb9c940 local/config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-default-sink
68b329da9893e34099c7d8ad5cb9c940 local/config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-default-source
8835951106be0bca2ffba3028d292be0 local/config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-device-volumes.tdb
6421f9290bb304e1121cb4a344cd30f1 local/config/pulse/a2418f11cd5a42a0bcdf6a0a78ac01ba-stream-volumes.tdb
92e4a824f3b212676ac68cfe6a31bd24 local/config/pulse/cookie