aboutsummaryrefslogtreecommitdiff
path: root/cmd/alps/main.go
diff options
context:
space:
mode:
authorAlex McGrath <amk@amk.ie>2021-09-10 09:12:38 +0100
committerSimon Ser <contact@emersion.fr>2021-09-12 12:01:29 +0200
commit1988b2a15860c21da7d2f57aa2e8fae2108b81c8 (patch)
treebcdd0c61008043bacf2cccef54a56e34fd564f0c /cmd/alps/main.go
parent1af693ce5382c8b6e04a94f9cdb2331697853c1b (diff)
downloadalps-1988b2a15860c21da7d2f57aa2e8fae2108b81c8.tar.gz
alps-1988b2a15860c21da7d2f57aa2e8fae2108b81c8.zip
make path to themes configurable via ldflags
Diffstat (limited to 'cmd/alps/main.go')
-rw-r--r--cmd/alps/main.go3
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)