mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
filezilla: initialize XDG vars
This commit is contained in:
committed by
Gerasim Troeglazov
parent
d603578c5a
commit
655df3db34
@@ -259,3 +259,43 @@ index 7b16d8a..8b120b6 100644
|
||||
--
|
||||
2.37.3
|
||||
|
||||
|
||||
From e307ee5d6125be25e9bd9f2d91310d7de40f01c4 Mon Sep 17 00:00:00 2001
|
||||
From: David Karoly <david.karoly@outlook.com>
|
||||
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 <locale.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+#include <glib.h>
|
||||
+#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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user