Subject: | Tests fail when XDG_CONFIG_HOME set in ENV |
Setting XDG_CONFIG_HOME overrides the default mechanic of reading $HOME/.config/user-dirs.dirs
And subsequently the default of that allows other variables like XDG_DESKTOP_DIR to override paths
The end result is:
export XDG_CONFIG_HOME="/root/config"
export XDG_DESKTOP_DIR="/root/invalid"
Results in these 2 types of failure:
1. ENV var and expected ${HOME} conjugation differ:
Show quoted text
2. xdg conjugated path and ${HOME} conjugation differs:
Show quoted text
--
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
And subsequently the default of that allows other variables like XDG_DESKTOP_DIR to override paths
The end result is:
export XDG_CONFIG_HOME="/root/config"
export XDG_DESKTOP_DIR="/root/invalid"
Results in these 2 types of failure:
1. ENV var and expected ${HOME} conjugation differ:
Show quoted text
# Failed test at t/03_userdirs.t line 38.
# got: '/root/invalid'
# expected: '/var/tmp/portage/dev-perl/File-BaseDir-0.70.0/temp/DzB9uPscin/Workspace'
# got: '/root/invalid'
# expected: '/var/tmp/portage/dev-perl/File-BaseDir-0.70.0/temp/DzB9uPscin/Workspace'
2. xdg conjugated path and ${HOME} conjugation differs:
Show quoted text
# Failed test at t/03_userdirs.t line 39.
# got: '/var/tmp/portage/dev-perl/File-BaseDir-0.70.0/temp/DzB9uPscin'
# expected: '/var/tmp/portage/dev-perl/File-BaseDir-0.70.0/temp/DzB9uPscin/Files'
# got: '/var/tmp/portage/dev-perl/File-BaseDir-0.70.0/temp/DzB9uPscin'
# expected: '/var/tmp/portage/dev-perl/File-BaseDir-0.70.0/temp/DzB9uPscin/Files'
--
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )