From 655df3db34b268cb4b2c5947f1dfe323d9a7a1d6 Mon Sep 17 00:00:00 2001 From: David Karoly Date: Mon, 5 Dec 2022 23:08:30 +0100 Subject: [PATCH] filezilla: initialize XDG vars --- .../patches/filezilla-3.62.2.patchset | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/net-ftp/filezilla/patches/filezilla-3.62.2.patchset b/net-ftp/filezilla/patches/filezilla-3.62.2.patchset index c418240d4..be5d28efb 100644 --- a/net-ftp/filezilla/patches/filezilla-3.62.2.patchset +++ b/net-ftp/filezilla/patches/filezilla-3.62.2.patchset @@ -259,3 +259,43 @@ index 7b16d8a..8b120b6 100644 -- 2.37.3 + +From e307ee5d6125be25e9bd9f2d91310d7de40f01c4 Mon Sep 17 00:00:00 2001 +From: David Karoly +Date: Mon, 5 Dec 2022 23:03:41 +0100 +Subject: Haiku: initialize XDG vars + + +diff --git a/src/interface/locale_initializer.cpp b/src/interface/locale_initializer.cpp +index fac6aa7..bcb1476 100644 +--- a/src/interface/locale_initializer.cpp ++++ b/src/interface/locale_initializer.cpp +@@ -10,6 +10,10 @@ + #include + #include + ++#ifdef __HAIKU__ ++#include ++#endif ++ + std::wstring GetOwnExecutableDir(); + + struct t_fallbacks +@@ -93,6 +97,14 @@ int main(int argc, char** argv) + } + } + ++#ifdef __HAIKU__ ++ g_setenv ("XDG_CONFIG_DIRS", "/boot/system/settings", FALSE); ++ g_setenv ("XDG_DATA_HOME", "/boot/home/config/non-packaged/data", FALSE); ++ g_setenv ("XDG_CONFIG_HOME", "/boot/home/config/settings", FALSE); ++ g_setenv ("XDG_CACHE_HOME", "/boot/home/config/cache", FALSE); ++ g_setenv ("XDG_DATA_DIRS", "/boot/system/non-packaged/data:/boot/system/data", FALSE); ++#endif ++ + return wxEntry(argc, argv); + } + +-- +2.37.3 +