Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 26912
Status: new
Priority: 0/
Queue: CPAN

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

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



Subject: CPAN.pm writing to .cpan directory in ~/Library/Application Support
Reconfiguring CPAN 1.9101 upgrading from 1.8801 I noticed this: commit: wrote '/Users/schwern/Library/Application Support/.cpan/CPAN/MyConfig.pm' Its great that its writing to ~/Library/Application Support/ on OS X. However it probably shouldn't be using a dot directory there. There's no need to hide the directory with a dot, it should be visible. The name of the application is the appropriate idiom. Probably something like "CPAN.pm". I'm not sure how you can figure out when this should be done. That is, on Unix if you're writing into ~ you want to hide application directories and use .cpan. On Windows and OS X or other system which have a specific app config directory you probably want to make the directory visible. This logic should probably go into File::HomeDir. Possibly by supplying it with a directory name and it deciding if it should be hidden or not. This is very, very minor. Just something I happened to notice.