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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1562
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-15891-1160951350-249.22120-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
From: DAGOLDEN [...] cpan.org
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 556
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
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.4 required=8.0 tests=BAYES_00,DK_SIGNED,DK_VERIFIED,DNS_FROM_RFC_ABUSE,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-15891-1160951350-249.22120-6-0 [...] rt.cpan.org>
Received-SPF: pass (x1.develooper.com: domain of schwern [...] gmail.com designates 64.233.162.192 as permitted sender)
References: <RT-Ticket-22120 [...] rt.cpan.org> <rt-3.6.HEAD-15891-1160951350-249.22120-6-0 [...] rt.cpan.org>
Reply-To: schwern [...] pobox.com
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id E8E0B4D8159 for <bug-CPAN-Reporter [...] rt.cpan.org>; Tue, 17 Oct 2006 20:22:28 -0400 (EDT)
Received: (qmail 4587 invoked by alias); 18 Oct 2006 00:22:26 -0000
Received: from nz-out-0102.google.com (HELO nz-out-0102.google.com) (64.233.162.192) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 17 Oct 2006 17:22:23 -0700
Received: by nz-out-0102.google.com with SMTP id z31so39307nzd for <bug-CPAN-Reporter [...] rt.cpan.org>; Tue, 17 Oct 2006 17:22:15 -0700 (PDT)
Received: by 10.64.210.3 with SMTP id i3mr13261507qbg; Tue, 17 Oct 2006 17:22:15 -0700 (PDT)
Received: from ?192.168.1.101? ( [69.64.236.3]) by mx.google.com with ESMTP id a5sm360366qbd.2006.10.17.17.22.13; Tue, 17 Oct 2006 17:22:15 -0700 (PDT)
Delivered-To: cpan-bug+cpan-reporter [...] diesel.bestpractical.com
User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909)
Subject: Re: [rt.cpan.org #22120] Putting .cpanreporter into ~/Documents on OS X is unexpected
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=LvVZWuYCjh6C/0svW+S2y8aK2CXsMJ4cCcRqfBpt+a2GDu7+HW/B+mAiohQw2phsmvIWbcJ+DFoNXc1k8gRyY9niH2GE9cEdiRxX8iIP5NJ1TbyOWn/7eNeyQFScDOF992cz/J77VnpTogBQ7QvXP4a6UluoyZCe361iBGgnFx0=
Return-Path: <schwern [...] gmail.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-CPAN-Reporter [...] rt.cpan.org
Date: Tue, 17 Oct 2006 17:22:05 -0700
Message-Id: <453573AD.4020401 [...] gmail.com>
To: bug-CPAN-Reporter [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Michael G Schwern <schwern [...] gmail.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-15965-1161130953-723.22120-0-0 [...] rt.cpan.org>
Content-Length: 843
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.
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-15965-1161130953-723.22120-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
References: <RT-Ticket-22120 [...] rt.cpan.org> <rt-3.6.HEAD-15891-1160951350-249.22120-6-0 [...] rt.cpan.org> <453573AD.4020401 [...] gmail.com> <rt-3.6.HEAD-15965-1161130953-723.22120-0-0 [...] rt.cpan.org>
Message-Id: <rt-3.6.HEAD-15879-1161136178-655.22120-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
From: DAGOLDEN [...] cpan.org
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 367
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-9945-1162295732-1365.22120-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 13
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.