termux-packages/packages/snapcast-server/server-config.cpp.patch

12 lines
341 B
Diff

--- a/server/config.cpp
+++ b/server/config.cpp
@@ -43,7 +43,7 @@
if (!root_directory.empty())
dir = root_directory;
else if (getenv("HOME") == nullptr)
- dir = "/var/lib/snapserver/";
+ dir = "@TERMUX_PREFIX@/var/lib/snapserver/";
else
dir = string(getenv("HOME")) + "/.config/snapserver/";