Re: CPAN and XDG directories

[email protected] (David Golden)
Newsgroups perl.cpan.workers
Message-ID <[email protected]>
On Wed, Feb 17, 2010 at 3:29 PM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <[email protected]> wrote:
> CPAN prefers to use File::HomeDir to determine it own directory, so far that
> has been `$HOME/.cpan`. F::H 0.90 adds XDG support, accordingly the directory

I suspect that's going to be a world of pain.  Historically, it's been
important during testing to be able to set $ENV{HOME} to a temp
directory and see that config files and other things wind up there
(because File::HomeDir::Unix->my_data was the same as my_home).

If File::HomeDir no longer bases my_data on my_home on Unix systems,
then anything that relies on my_data may start overwriting real user
config data during testing if they have an upgraded File::HomeDir.

I strongly suggest that File::HomeDir not default to FreeDesktop mode
unless explicitly requested.

Either way, it needs at least a major version bump and lots of public notice.

-- David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.