aports/testing/alps/fix-statics-dir.patch
Bart Ribbers 10edb1a47a testing/alps: don't install files to var
According to the FHS /var is meant for "variable data" which files
installed by the package manager by definition aren't. Instead we'll
install the files to /usr/share where they belong.
2024-11-04 20:01:08 +00:00

26 lines
631 B
Diff

diff --git a/cmd/alps/main.go b/cmd/alps/main.go
index 5a00957..f537177 100644
--- a/cmd/alps/main.go
+++ b/cmd/alps/main.go
@@ -23,7 +23,7 @@ import (
_ "git.sr.ht/~migadu/alps/plugins/viewtext"
)
-var themesPath = "./themes"
+var themesPath = "/usr/lib/alps/themes"
func main() {
var (
diff --git a/plugin.go b/plugin.go
index e634f02..43b8164 100644
--- a/plugin.go
+++ b/plugin.go
@@ -7,7 +7,7 @@ import (
)
// PluginDir is the path to the plugins directory.
-const PluginDir = "plugins"
+const PluginDir = "/usr/lib/alps/plugins"
// Plugin extends alps with additional functionality.
type Plugin interface {