Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Reporter CPAN distribution.

Report information
The Basics
Id: 22120
Status: resolved
Priority: 0/
Queue: CPAN-Reporter

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

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



Subject: Putting .cpanreporter into ~/Documents on OS X is unexpected
Download (untitled) / with headers
text/plain 1.5k
After allowing the CPAN shell to configure CPAN::Reporter I wanted to look at the config file. I couldn't find it. I didn't see anything in my home directory nor anything in my CPAN config file. I finally reran the config and noticed the "Writing CPAN::Reporter config file to '/Users/schwern/Documents/.cpanreporter/config.ini'" message. I realize this is documented but its unexpected. I have no other dot config files in ~/Documents. Everything is in ~/ like any other Unix. I haven't done anything to change my OS X config, this is the default. 0 windhund ~$ ls -d .* . .cpan .links .recently-used .. .dvdcss .lpoptions .scorched3d .CFUserTextEncoding .emacs .minicpanrc .spumux .DS_Store .emacs.d .mplayer .ssh .MacOSX .emacs~ .mysql_history .subversion .Trash .ethereal .narya .svk .Xauthority .fonts.cache-1 .okbiff .thumbnails .aliases .gimp-2.0-etc .pause .uqm .aspell.en.prepl .gimp-2.2 .port_history .viminfo .aspell.en.pws .gnome .portauthority .vimrc .bash_history .gnome_private .profile .xchat2 .bashrc .gnucash .profile.dpsaved .xinitrc.old .bashrc~ .gnupg .profile~ .ypp_42 .ccache .hiveminder .qt 0 windhund ~$ cd Documents/ 0 windhund ~/Documents$ ls -d .* . .. .DS_Store .cpanreporter .localized
From: DAGOLDEN [...] cpan.org
Download (untitled) / with headers
text/plain 556b
I can see why that would be confusing. CPAN::Reporter uses the "my_documents" from File::HomeDir for portability. I prefer that to "my_data" because on Windows, "my_data" is an obscure folder buried deep in "C:\Documents and Settings". That's fine for application-managed data, but config files are *user*-managed files, so users need to be able to find them easily. "my_documents" seemed to be a better choice to reflect that, and it's just ~ on Unix. OSX is kind of a hybrid, and I can see that the home directory would be a more natural choice.
CC: MSCHWERN [...] cpan.org
Subject: Re: [rt.cpan.org #22120] Putting .cpanreporter into ~/Documents on OS X is unexpected
Date: Tue, 17 Oct 2006 17:22:05 -0700
To: bug-CPAN-Reporter [...] rt.cpan.org
From: Michael G Schwern <schwern [...] gmail.com>
Download (untitled) / with headers
text/plain 843b
via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=22120 > > > I can see why that would be confusing. > > CPAN::Reporter uses the "my_documents" from File::HomeDir for > portability. I prefer that to "my_data" because on Windows, "my_data" > is an obscure folder buried deep in "C:\Documents and Settings". That's > fine for application-managed data, but config files are *user*-managed > files, so users need to be able to find them easily. "my_documents" > seemed to be a better choice to reflect that, and it's just ~ on Unix. > > OSX is kind of a hybrid, and I can see that the home directory would be > a more natural choice.
CPAN.pm uses File::HomeDir. How does it handle this? Maybe File::HomeDir needs some sort of "where do I put config files" that picks the appropriate directory for the operating system.
From: DAGOLDEN [...] cpan.org
Download (untitled) / with headers
text/plain 367b
On Tue Oct 17 20:22:33 2006, schwern@pobox.com wrote: Show quoted text
> CPAN.pm uses File::HomeDir. How does it handle this? > > Maybe File::HomeDir needs some sort of "where do I put config files" > that picks the appropriate directory for the operating system.
CPAN.pm uses "my_data". Honestly, I think this has all the hallmarks of a religious war for File::HomeDir. David
Fixed in 0.29


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.