bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] wishlist: configure ~/.wget-hsts by environment variable


From: Tim Ruehsen
Subject: Re: [Bug-wget] wishlist: configure ~/.wget-hsts by environment variable
Date: Fri, 10 Mar 2017 12:17:19 +0100
User-agent: KMail/5.2.3 (Linux/4.9.0-2-amd64; KDE/5.28.0; x86_64; ; )

On Thursday, March 9, 2017 5:47:00 PM CET Félix Sipma wrote:
> Hi!
> 
> Would it be possible to add an environment variable to set the location of
> the hsts-file (by default set to "~/.wget-hsts"), in addition to the
> existing --hsts-file mechanism?

You are aware that you can put all options as 'commands' into a config file !?
The default is ~/.wgetrc but you can override it with WGETRC env variable.
If that isn't enough, you can override the above with --config=<file> (or --no-
config).

> It would help, to have a home free of configuration and data files. I try to
> use $XDG_CONFIG_HOME and $XDG_DATA_HOME, but as wget does not seem to use
> these variables yet, it would probably be simpler to just add an
> environment variable for the hsts-file.

Use WGETRC and specify 'hstsfile' in that config file to point somewhere 
outside 
the home dir.

Tim

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]