File::HomeDir is _supposed_ to support overloading of home directories
via $ENV{HOME} at all times (even on Windows, where the HOME variable
doesn't exist).

We may need to add some special casing someone can demonstrate this
not working, perhaps we can ask the XDG for the home directory, and if
the result doesn't match $ENV{HOME} we ignore everything else that XDG
says... (pun totally intended) :)

Adam K

On Thu, Feb 18, 2010 at 3:03 PM, David Golden <[email protected]> wrote:
> 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
>

Reply via email to