summaryrefslogtreecommitdiff
path: root/doc/userscripts.asciidoc
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-20 15:24:45 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-20 18:18:59 +0100
commitc4c370208983fed8f53d82c8492fd97fba987cf6 (patch)
tree279e11cea0a631de25ff27d7fd55b82f3c58df2c /doc/userscripts.asciidoc
parent6e03a22482079bd7d87438406956aac5f47b20c0 (diff)
downloadqutebrowser-c4c370208983fed8f53d82c8492fd97fba987cf6.tar.gz
qutebrowser-c4c370208983fed8f53d82c8492fd97fba987cf6.zip
userscripts: Add QUTE_VERSION
See #937
Diffstat (limited to 'doc/userscripts.asciidoc')
-rw-r--r--doc/userscripts.asciidoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/userscripts.asciidoc b/doc/userscripts.asciidoc
index e97a951c4..804ef5a34 100644
--- a/doc/userscripts.asciidoc
+++ b/doc/userscripts.asciidoc
@@ -43,6 +43,9 @@ The following environment variables will be set when a userscript is launched:
qutebrowser is still in command mode. If you want to receive arguments passed
to your userscript via `:spawn`, use the normal way of getting commandline
arguments (e.g. `$@` in bash or `sys.argv` / `argparse` / ... in Python).
+- `QUTE_VERSION`: The version of qutebrowser, as a string like "2.0.0". Note that this
+ was added in v2.0.0, thus older versions can only be detected by the absence of this
+ variable.
In `command` mode: