File 0003-Add-usr-share-caprice32-as-patch-to-search-for-cap32.patch of Package caprice32

From 4cf2b45c40397c1ef6f7f3472c6cd53d66388025 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Mon, 3 Jan 2022 11:53:09 +0100
Subject: [PATCH 3/3] Add /usr/share/caprice32 as patch to search for cap32.cfg
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@suse.de>
---
 src/cap32.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cap32.cpp b/src/cap32.cpp
index 8efe816..e16ded0 100644
--- a/src/cap32.cpp
+++ b/src/cap32.cpp
@@ -1651,6 +1651,7 @@ std::string getConfigurationFilename(bool forWrite)
     { getenv("XDG_CONFIG_HOME"), "/cap32.cfg" },
     { getenv("HOME"), "/.config/cap32.cfg" },
     { getenv("HOME"), "/.cap32.cfg" },
+    { "/usr/share", "/caprice32/cap32.cfg" },
     { DESTDIR, "/etc/cap32.cfg" },
     { binPath.string().c_str(), "/../Resources/cap32.cfg" }, // To find the configuration from the bundle on MacOS
   };
-- 
2.34.1

openSUSE Build Service is sponsored by