Merge branch 'config-loc' of sloum/bombadillo into develop
Tested, no issues. Wording of documentation is good.
This commit is contained in:
commit
76b58a2337
|
@ -206,6 +206,10 @@ Writes data from a given link id in the current document to a file. The file is
|
||||||
The following is a list of the settings that \fBbombadillo\fP recognizes, as well as a description of their valid values.
|
The following is a list of the settings that \fBbombadillo\fP recognizes, as well as a description of their valid values.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
|
configlocation
|
||||||
|
The path to the directory that the \fI.bombadillo.ini\fP configuration file is stored in. This is a \fBread only\fP setting and cannot be changed with the \fIset\fP command, but it can be read with the \fIcheck\fP command.
|
||||||
|
.TP
|
||||||
|
.B
|
||||||
homeurl
|
homeurl
|
||||||
The url that \fBbombadillo\fP navigates to when the program loads or when the \fIhome\fP or \fIh\fP LINE COMMAND is issued. This should be a valid url. If a scheme/protocol is not included, gopher will be assumed.
|
The url that \fBbombadillo\fP navigates to when the program loads or when the \fIhome\fP or \fIh\fP LINE COMMAND is issued. This should be a valid url. If a scheme/protocol is not included, gopher will be assumed.
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -410,7 +410,11 @@ func (c *client) doCommandAs(action string, values []string) {
|
||||||
c.Options[values[0]] = lowerCaseOpt(values[0], val)
|
c.Options[values[0]] = lowerCaseOpt(values[0], val)
|
||||||
if values[0] == "tlskey" || values[0] == "tlscertificate" {
|
if values[0] == "tlskey" || values[0] == "tlscertificate" {
|
||||||
c.Certs.LoadCertificate(c.Options["tlscertificate"], c.Options["tlskey"])
|
c.Certs.LoadCertificate(c.Options["tlscertificate"], c.Options["tlskey"])
|
||||||
}
|
} else if values[0] == "configlocation" {
|
||||||
|
c.SetMessage("Cannot set READ ONLY setting 'configlocation'", true)
|
||||||
|
c.DrawMessage()
|
||||||
|
return
|
||||||
|
}
|
||||||
err := saveConfig()
|
err := saveConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.SetMessage("Value set, but error saving config to file", true)
|
c.SetMessage("Value set, but error saving config to file", true)
|
||||||
|
|
Loading…
Reference in New Issue