diff --git a/bombadillo.1 b/bombadillo.1 index 7402a1d..d716ee0 100644 --- a/bombadillo.1 +++ b/bombadillo.1 @@ -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. .TP .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 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 diff --git a/client.go b/client.go index ea75444..2693ad0 100644 --- a/client.go +++ b/client.go @@ -410,7 +410,11 @@ func (c *client) doCommandAs(action string, values []string) { c.Options[values[0]] = lowerCaseOpt(values[0], val) if values[0] == "tlskey" || values[0] == "tlscertificate" { 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() if err != nil { c.SetMessage("Value set, but error saving config to file", true)