#7 Support user default configuration file ~/.getliverc

closed
None
5
2007-12-02
2007-10-24
Feifei Jia
No

When running GetLive.pl without argument, use default
config file (~/.getliverc) instead. I thought this
maybe a little more convenient :)

The code may look like below:

# --config-file is a mandatory argument.
if ($ArgvAsString !~ m/--config-file\s+([\w\/\\~\.\-]+)/si) {
$ConfigFile = $ENV{"HOME"} . "/.getliverc";

#DisplayUsageAndExit();
}
else {
$ConfigFile = $1;
$ArgvAsString = $` . $'; # The matched stuff removed.
}

Cheers

Discussion

  • Jos De Laender

    Jos De Laender - 2007-12-02

    Logged In: YES
    user_id=242946
    Originator: NO

    Dear,

    I'm going to reject this one because :
    1. It's not that intuitive or obvious for our Windows based friends, and I want to keep the codebasis as much as possible independent of OS. The ~/.SomethingRc is an unknown pattern to them.
    2. As *nix user you can easily locally implement it by means of an alias or a wrapper script.
    3. Maybe it's even not a good idea for our Linux users as they might run it (like I do) under the one or the other mail account where 'HOME' isn't that relevant neither.

    Thanks for suggesting though !

    Jos

     
  • Jos De Laender

    Jos De Laender - 2007-12-02
    • assigned_to: nobody --> jdla
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks