File 0011-use-DOCDIR-for-docs.patch of Package wangemu

From f68aa9f862a6756d6fd5f066a88b5c3b238a7a0f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Tue, 14 Oct 2025 15:45:47 +0200
Subject: [PATCH 11/11] use DOCDIR for docs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
---
 Makefile.linux | 3 ++-
 src/host.cpp   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile.linux b/Makefile.linux
index 90130eb..d715b03 100644
--- a/Makefile.linux
+++ b/Makefile.linux
@@ -39,8 +39,9 @@ opt: OPTFLAGS := -O2
 opt: wangemu tags
 
 DATADIR     := /usr/share/wangemu
+DOCDIR      := /usr/share/doc/packages/wangemu
 CXX         := `wx-config --cxx`
-CXXFLAGS    := `wx-config --cxxflags` -fno-common -D__LINUX__ -DDATADIR=\"$(DATADIR)\"
+CXXFLAGS    := `wx-config --cxxflags` -fno-common -D__LINUX__ -DDATADIR=\"$(DATADIR)\" -DDOCDIR=\"$(DOCDIR)\"
 CXXWARNINGS := -Wall -Wextra -Wshadow -Wformat -Wundef -Wstrict-aliasing=1 \
                -Wno-deprecated-declarations \
                -Wno-ctor-dtor-privacy -Woverloaded-virtual 
diff --git a/src/host.cpp b/src/host.cpp
index c8608c6..32ee0bd 100644
--- a/src/host.cpp
+++ b/src/host.cpp
@@ -311,7 +311,7 @@ host::fileReq(int requestor, const std::string &title, bool readonly, std::strin
 // return the absolute path to the dir containing the app
 std::string host::getAppHome()
 {
-    return app_home;
+    return DOCDIR;
 }
 
 
-- 
2.51.0

openSUSE Build Service is sponsored by