Skip Menu |

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

Report information
The Basics
Id: 62520
Status: open
Priority: 0/
Queue: File-HomeDir

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

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



Subject: ->my_config is not implemented on Win32
->my_config is currently not implemented on Windows in 0.93. It should point to CSIDL_APPDATA on Windows (application configuration must be roaming). Note that my_dist_config depends on my_config and currently defaults to my_documents as a base and this is a wrong place to store application settings. C:\Documents and Settings\omengue\Mes Documents>perl -MFile::HomeDir -E "say File::HomeDir->my_dist_config('Toto', { create => 1 }), qq{\n}" C:\Documents and Settings\omengue\Mes documents\Perl\Toto -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/
Le 2010-10-28 10:58:17, DOLMEN a écrit : Show quoted text
> C:\Documents and Settings\omengue\Mes Documents>perl -MFile::HomeDir -E > "say File::HomeDir->my_dist_config('Toto', { create => 1 }), qq{\n}" > C:\Documents and Settings\omengue\Mes documents\Perl\Toto
This is Windows XP, french. Expected result: C:\Documents and Settings\omengue\Application Data\Perl\Toto -- Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/
Subject: ->my_config is not implemented on Win32 (or Linux either)
Same issue for me, running Linux. There is no POD for a my_config() method; it's only implied by my_dist_config(). Both methods die for me. Oddly enough, the test suite does not fail. Xiong Changnian XIONG@cpan.org
Subject: ->my_config is not implemented on Linux either
Correction: my_dist_config() doesn't die; but does return undef.