aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/Cargo.toml1
-rw-r--r--server/src/main.rs5
2 files changed, 5 insertions, 1 deletions
diff --git a/server/Cargo.toml b/server/Cargo.toml
index c12d5d9a..1ece357d 100644
--- a/server/Cargo.toml
+++ b/server/Cargo.toml
@@ -43,3 +43,4 @@ default = ["mdns", "register", "upnp"]
mdns = ["dep:mdns-sd", "dep:get_if_addrs"]
register = ["dep:reqwest"]
upnp = ["dep:igd", "dep:get_if_addrs"]
+flatpak = []
diff --git a/server/src/main.rs b/server/src/main.rs
index e7251308..d6e6f8f7 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -105,7 +105,10 @@ fn main() -> Result<()> {
#[cfg(debug_assertions)]
test_order.push("data".to_string());
- #[cfg(not(windows))]
+ #[cfg(feature = "flatpak")]
+ test_order.push("/app/share/hurrycurry/data");
+
+ #[cfg(not(any(windows, feature = "flatpak")))]
test_order.extend([
"/usr/local/share/hurrycurry/data".to_string(),
"/usr/share/hurrycurry/data".to_string(),