File 0010-use-.wangemu-as-user-config-dir.patch of Package wangemu

From 07c46c13233823685a27eeddecc9b53b441e4361 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Tue, 14 Oct 2025 15:36:56 +0200
Subject: [PATCH 10/11] use ~/.wangemu as user config dir
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
 src/host.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/host.cpp b/src/host.cpp
index aa2f1c3..c8608c6 100644
--- a/src/host.cpp
+++ b/src/host.cpp
@@ -172,9 +172,12 @@ host::initialize()
     exe_path = stdp.GetResourcesDir();
   #endif
 #endif
-
+#ifdef __LINUX__
+    app_home = stdp.GetUserConfigDir() + "/.wangemu/";
+    wxMkDir(app_home, 0755);
+#else
     app_home = std::string(exe_path.GetPath(wxPATH_GET_VOLUME));
-
+#endif
 #ifdef __WXMSW__
     config = std::make_unique<wxFileConfig>(
                 wxEmptyString,                  // appName
-- 
2.51.0

openSUSE Build Service is sponsored by