Skip Menu |

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

Report information
The Basics
Id: 14236
Status: resolved
Priority: 0/
Queue: File-BaseDir

People
Owner: pardus [...] cpan.org
Requestors: bricas [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: 0.03



Subject: warnings if $ENV{ HOME } is not set
Hi, Re: Line 18 of BaseDir.pm our $xdg_data_home = File::Spec->catdir($ENV{HOME}, qw/.local share/); On Win32 machines where $ENV{ HOME } isn't set, File::BaseDir will make File::Spec generate warnings because it is sending undef to the catdir() function. -Brian
[guest - Fri Aug 19 15:15:40 2005]: Show quoted text
> On Win32 machines where $ENV{ HOME } isn't set, File::BaseDir will > make File::Spec generate warnings because it is sending undef to the > catdir() function.
Trying a new app of mine on win32 machines now. IMHO the problem isn't the warning, the problem is that no HOME dir is defined. I'll probably patch BaseDir to find the right dir on win32. Suggestions on how to do this are welcome. Cheers!
[PARDUS - Sat Sep 24 18:45:37 2005]: Show quoted text
> Trying a new app of mine on win32 machines now. IMHO the problem isn't > the warning, the problem is that no HOME dir is defined. I'll probably > patch BaseDir to find the right dir on win32. > > Suggestions on how to do this are welcome.
FWIW, on my WinXP machine, i can use $ENV{ HOMEDRIVE } . $ENV{ HOMEPATH } to get my home directory. -Brian
From: pardus [...] cpan.org
On Wed Nov 09 08:17:22 2005, BRICAS wrote: Show quoted text
> FWIW, on my WinXP machine, i can use $ENV{ HOMEDRIVE } . $ENV{
HOMEPATH Show quoted text
> } to get my home directory.
Ok, more than a year overdue - my bad. Released 0.03 yesterday, it checks for a few win32 specific env variables to set $HOME. Will close the report once RT sync the new version number.