Re: Expected Config File Locations

2011-09-02 Thread Paul
On Tue, Aug 30, 2011 at 01:55:48PM +0100, Smylers wrote: Hi. I'm looking for some advice on where I should put the config file for a command I'm distributing on Cpan. Where would you it to be? I'm interested in opinions of Windows, Mac, and Unix users, for both per-user and system-wide config.

Re: Expected Config File Locations

2011-08-31 Thread Smylers
David Cantrell writes: > On Tue, Aug 30, 2011 at 01:55:48PM +0100, Smylers wrote: > > > ... advice on where I should put the config file for a command ... > > On Mac and other Unix-a-likes, .${command}rc or .$command for per-user > config, and /etc/$command or /etc/${command}rc for system-wide c

Re: Expected Config File Locations

2011-08-30 Thread David Cantrell
On Tue, Aug 30, 2011 at 01:55:48PM +0100, Smylers wrote: > Hi. I'm looking for some advice on where I should put the config file > for a command I'm distributing on Cpan. Where would you it to be? I'm > interested in opinions of Windows, Mac, and Unix users, for both > per-user and system-wide con

Re: Expected Config File Locations

2011-08-30 Thread Abigail
On Tue, Aug 30, 2011 at 04:44:10PM +0100, Smylers wrote: > Abigail writes: > > > On Tue, Aug 30, 2011 at 01:55:48PM +0100, Smylers wrote: > > > > > Hi. I'm looking for some advice on where I should > > ... ask users to ... > > > > put the config file for a command I'm distributing on Cpan. Wher

Re: Expected Config File Locations

2011-08-30 Thread Peter Edwards
On 30 August 2011 16:25, Smylers wrote: > On Windows, it uses %LOCAL_APPDATA%\bang.cfg (where %LOCAL_APPDATA% is > gleaned from a system %call). How does that seem to Windows users? > > However it doesn't seem to support recent Windows versions, crashing on. > Windows 7 and even Vista: > > https

Re: Expected Config File Locations

2011-08-30 Thread Smylers
Abigail writes: > On Tue, Aug 30, 2011 at 01:55:48PM +0100, Smylers wrote: > > > Hi. I'm looking for some advice on where I should ... ask users to ... > > put the config file for a command I'm distributing on Cpan. Where > > would you ... expect ... > > it to be? I'm interested in opinions o

Re: Expected Config File Locations

2011-08-30 Thread Smylers
David Precious writes: > On Tuesday 30 August 2011 13:55:48 Smylers wrote: > > > Hi. I'm looking for some advice on where I should put the config file > > for a command I'm distributing on Cpan. > > Config::Find looks like it is designed for exactly what you're looking > for - have you seen that

Re: Expected Config File Locations

2011-08-30 Thread Smylers
Philip Newton writes: > On Tue, Aug 30, 2011 at 14:55, Smylers wrote: > > >  I see that psql uses %APPDATA%\postgesql\psqlrc.conf for per-user > >  config > > I think that on Windows, the application data directory hierarchy is > the right place for programs to store their own configuration dat

Re: Expected Config File Locations

2011-08-30 Thread Abigail
On Tue, Aug 30, 2011 at 01:55:48PM +0100, Smylers wrote: > Hi. I'm looking for some advice on where I should put the config file > for a command I'm distributing on Cpan. Where would you it to be? I'm > interested in opinions of Windows, Mac, and Unix users, for both > per-user and system-wide conf

Re: Expected Config File Locations

2011-08-30 Thread David Precious
On Tuesday 30 August 2011 13:55:48 Smylers wrote: > Hi. I'm looking for some advice on where I should put the config file > for a command I'm distributing on Cpan. Where would you it to be? I'm > interested in opinions of Windows, Mac, and Unix users, for both > per-user and system-wide config. >

Re: Expected Config File Locations

2011-08-30 Thread Philip Newton
On Tue, Aug 30, 2011 at 14:55, Smylers wrote: > In particular, on Windows: > > * system_cfg_dir returns the value of %windir%. Is %windir%\bang* a >  sensible place for the config of a command called bang? > > * user_cfg_dir returns the user's home directory. Is that a sensible >  place for a conf

Expected Config File Locations

2011-08-30 Thread Smylers
Hi. I'm looking for some advice on where I should put the config file for a command I'm distributing on Cpan. Where would you it to be? I'm interested in opinions of Windows, Mac, and Unix users, for both per-user and system-wide config. Or has anybody here dealt with this in Perl, for a command w