diff options
author | Alex McGrath <amk@amk.ie> | 2021-09-10 09:12:38 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-09-12 12:01:29 +0200 |
commit | 1988b2a15860c21da7d2f57aa2e8fae2108b81c8 (patch) | |
tree | bcdd0c61008043bacf2cccef54a56e34fd564f0c /cmd | |
parent | 1af693ce5382c8b6e04a94f9cdb2331697853c1b (diff) | |
download | alps-1988b2a15860c21da7d2f57aa2e8fae2108b81c8.tar.gz alps-1988b2a15860c21da7d2f57aa2e8fae2108b81c8.zip |
make path to themes configurable via ldflags
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/alps/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/alps/main.go b/cmd/alps/main.go index 3cfd560..5a00957 100644 --- a/cmd/alps/main.go +++ b/cmd/alps/main.go @@ -23,6 +23,8 @@ import ( _ "git.sr.ht/~migadu/alps/plugins/viewtext" ) +var themesPath = "./themes" + func main() { var ( addr string @@ -46,6 +48,7 @@ func main() { flag.Usage() return } + options.ThemesPath = themesPath if loginKey != "" { fernetKey, err := fernet.DecodeKey(loginKey) |