about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-10 17:48:27 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-10 17:48:27 +0100
commitc85dfb6a369ea1e9fc4b1f4cd7dba2b9d7b75483 (patch)
tree95c7eeaaa270c7a4824e0ac6cf805a30c8d607c3 /src/config
parent48b197133783bf7ec7211b1e114b6ca73f36a3c6 (diff)
downloadchawan-c85dfb6a369ea1e9fc4b1f4cd7dba2b9d7b75483.tar.gz
mailcap: add $MAILCAP_URL
This is better than %u as it is backwards compatible (i.e. does not rely on
other user agents doing whatever upon encountering an unknown substitution
template.)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/config.nim b/src/config/config.nim
index ae4a8f85..eef04f52 100644
--- a/src/config/config.nim
+++ b/src/config/config.nim
@@ -350,7 +350,7 @@ proc readUserStylesheet(dir, file: string): string =
 # of several individual configuration files known as mailcap files.
 proc getMailcap*(config: Config): tuple[mailcap: Mailcap, errs: seq[string]] =
   let configDir = getConfigDir() / "chawan" #TODO store this in config?
-  const gopherPath0 = ChaPath("${%CHA_LIBEXEC_DIR}/gopher2html -u %u")
+  const gopherPath0 = ChaPath("${%CHA_LIBEXEC_DIR}/gopher2html -u $MAILCAP_URL")
   let gopherPath = gopherPath0.unquote().get
   var mailcap = @[MailcapEntry(
     mt: "text",