Skip Menu |

This queue is for tickets about the File-BaseDir CPAN distribution.

Report information
The Basics
Id: 123343
Status: open
Priority: 0/
Queue: File-BaseDir

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
#   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'

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'


-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Please note that this module has been put up for adoption. I'm not able to maintain it anymore for several reasons, but bug reports are still coming to me.