From 6686f2eda74a0f2cef9b8b3017515bff8be9d87e Mon Sep 17 00:00:00 2001
From: Miroslav Lichvar <mlichvar@redhat.com>
Date: Mon, 9 Nov 2020 10:45:05 +0100
Subject: [PATCH] update XDG menu prefix in KDE session script (#1851755)

---
 openbox-kf5menu.patch | 12 ++++++++++++
 openbox.spec          |  2 ++
 2 files changed, 14 insertions(+)
 create mode 100644 openbox-kf5menu.patch

diff --git a/openbox-kf5menu.patch b/openbox-kf5menu.patch
new file mode 100644
index 0000000..1c3c9e5
--- /dev/null
+++ b/openbox-kf5menu.patch
@@ -0,0 +1,12 @@
+diff -up openbox-3.6.1/data/xsession/openbox-kde-session.in.kf5menu openbox-3.6.1/data/xsession/openbox-kde-session.in
+--- openbox-3.6.1/data/xsession/openbox-kde-session.in.kf5menu	2011-10-16 18:13:18.000000000 +0200
++++ openbox-3.6.1/data/xsession/openbox-kde-session.in	2020-11-09 10:42:43.755217411 +0100
+@@ -8,7 +8,7 @@ if test -n "$1"; then
+ fi
+ 
+ # Set the prefix for the menu layout to use
+-export XDG_MENU_PREFIX="kde-4-"
++export XDG_MENU_PREFIX="kf5-"
+ 
+ # Clean up after GDM
+ xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
diff --git a/openbox.spec b/openbox.spec
index 032f204..f925b52 100644
--- a/openbox.spec
+++ b/openbox.spec
@@ -11,6 +11,7 @@ Source2:	xdg-menu
 Source3:	menu.xml
 Source4:	terminals.menu
 Patch1:		openbox-python3.patch
+Patch2:		openbox-kf5menu.patch
 
 Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
 
@@ -92,6 +93,7 @@ KDE session.
 %prep
 %setup -q
 %patch1 -p1 -b .python3
+%patch2 -p1 -b .kf5menu
 
 
 %build