summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-25 18:39:02 -0400
committerJune McEnroe <june@causal.agency>2020-08-25 18:39:02 -0400
commitb76b458ef8ea0be0da20e9d92c3923657bc816da (patch)
treeef3c2db881bbdec80386e707e76808e2b631c9fb
parentUse dataOpen for save file (diff)
downloadpounce-b76b458ef8ea0be0da20e9d92c3923657bc816da.tar.gz
pounce-b76b458ef8ea0be0da20e9d92c3923657bc816da.zip
Document configuration and data file search
Diffstat (limited to '')
-rw-r--r--pounce.181
1 files changed, 68 insertions, 13 deletions
diff --git a/pounce.1 b/pounce.1
index 74d58fe..518f410 100644
--- a/pounce.1
+++ b/pounce.1
@@ -1,4 +1,4 @@
-.Dd August 12, 2020
+.Dd August 25, 2020
 .Dt POUNCE 1
 .Os
 .
@@ -90,6 +90,12 @@ for details.
 .Pp
 Options can be loaded from
 files listed on the command line.
+Files are searched for in
+.Pa $XDG_CONFIG_DIRS/pounce
+unless the path starts with
+.Ql /
+or
+.Ql \&. .
 Each option is placed on a line,
 and lines beginning with
 .Ql #
@@ -105,7 +111,9 @@ The arguments are as follows:
 Require clients to authenticate
 using a TLS client certificate
 signed by the certificate authority loaded from
-.Ar path .
+.Ar path ,
+which is searched for
+in the same manner as configuration files.
 See
 .Sx Generating Client Certificates .
 If
@@ -183,7 +191,7 @@ Bind to source address
 .Ar host
 when connecting to the server.
 .
-.It Fl T
+.It Fl T , Cm no-sts
 Do not advertise a
 strict transport security (STS) policy
 to clients.
@@ -233,7 +241,9 @@ it is recommended to use SASL EXTERNAL instead with
 .
 .It Fl c Ar path , Cm client-cert = Ar path
 Load the TLS client certificate from
-.Ar path .
+.Ar path ,
+which is searched for
+in the same manner as configuration files.
 If the private key is in a separate file,
 it is loaded with
 .Fl k .
@@ -252,13 +262,17 @@ See
 .Sx Configuring CertFP .
 .
 .It Fl f Ar path , Cm save = Ar path
-Load the contents of the buffer from
-.Ar path ,
-if it exists,
-and truncate it.
-On shutdown,
-save the contents of the buffer to
-.Ar path .
+Load and save the contents of the buffer from
+.Ar path
+in
+.Pa $XDG_DATA_DIRS/pounce ,
+or an absolute or relative path if
+.Ar path
+starts with
+.Ql /
+or
+.Ql \&. .
+The file is truncated after loading.
 .
 .It Fl g Ar path
 Generate a TLS client certificate using
@@ -281,7 +295,9 @@ Join the comma-separated list of
 .
 .It Fl k Ar path , Cm client-priv = Ar path
 Load the TLS client private key from
-.Ar path .
+.Ar path ,
+which is searched for
+in the same manner as configuration files.
 .
 .It Fl n Ar nick , Cm nick = Ar nick
 Set nickname to
@@ -525,7 +541,9 @@ sasl-external
 .El
 .
 .Ss Service Configuration
-Add the following to
+On
+.Fx ,
+add the following to
 .Pa /etc/rc.conf
 to enable the
 .Nm
@@ -589,6 +607,33 @@ command.
 The default nickname.
 .El
 .
+.Sh FILES
+.Bl -tag -width Ds
+.It Pa $XDG_CONFIG_DIRS/pounce
+Configuration files are searched for first in
+.Ev $XDG_CONFIG_HOME ,
+usually
+.Pa ~/.config ,
+followed by the colon-separated list of paths
+.Ev $XDG_CONFIG_DIRS ,
+usually
+.Pa /etc/xdg .
+.It Pa ~/.config/pounce
+The most likely location of configuration files.
+.
+.It Pa $XDG_DATA_DIRS/pounce
+Save files are searched for first in
+.Ev $XDG_DATA_HOME ,
+usually
+.Pa ~/.local/share ,
+followed by the colon-separated list of paths
+.Ev $XDG_DATA_DIRS ,
+usually
+.Pa /usr/local/share:/usr/share .
+.It Pa ~/.local/share/pounce
+The most likely location of save files.
+.El
+.
 .Sh EXAMPLES
 Obtain a certificate and start
 .Nm :
@@ -682,6 +727,16 @@ join = #ascii.town
 .%I IRCv3 Working Group
 .%U https://ircv3.net/specs/extensions/server-time-3.2
 .Re
+.
+.It
+.Rs
+.%A Waldo Bastian
+.%A Ryan Lortie
+.%A Lennart Poettering
+.%T XDG Base Directory Specification
+.%D November 24, 2010
+.%U https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
+.Re
 .El
 .
 .Ss Extensions
0400'>2018-08-07Convert input to multibyte before handlingJune McEnroe 2018-08-07Populate tab-complete listJune McEnroe 2018-08-07Fix /me formatting side-effectsJune McEnroe NEVER pass side-effects to a macro. 2018-08-07Define ui.c BUF_LEN with enumJune McEnroe 2018-08-07Hack clang into checking uiFmt format stringsJune McEnroe 2018-08-07Handle PART and QUIT without messagesJune McEnroe 2018-08-07Make safe filling the who bufferJune McEnroe 2018-08-07Add reverse and reset IRC formatting codesJune McEnroe 2018-08-06Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe This is so embarrassing. It only started crashing once it had strings that were long enough, and then it took me so long to notice this mistake. I was worried I was still doing va_list wrong somehow. 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe vaswprintf is a nightmare. 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe This is actually possible with use_default_colors! 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe Fall back to using bold if there are only 8 colors. This also allowed bright background colors in 16-color terminals. I must port this system to torus. I'll be able to remove the awful termcap patch hack. 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe Oh boy that's embarrassing. 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe Don't really have a way to implement the M-* keys, and currently missing C-w. 2018-08-04Handle /topicJune McEnroe