From 1988b2a15860c21da7d2f57aa2e8fae2108b81c8 Mon Sep 17 00:00:00 2001 From: Alex McGrath Date: Fri, 10 Sep 2021 09:12:38 +0100 Subject: make path to themes configurable via ldflags --- cmd/alps/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/alps') 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) -- cgit v1.2.3