From: =?utf-8?q?Aur=C3=A9lien_COUDERC?= <coucouf@debian.org>
Date: Thu, 4 Jun 2026 14:17:40 +0800
Subject: =?utf-8?q?Don=E2=80=99t_set_executable_bit_for_installed_desktop_f?=
 =?utf-8?q?iles?=

Upstream added the executable bit to installed desktop file with
the justification that otherwise the files cannot be run when
not installed as root.

For the Debian package all files are installed as root so this
patch disables setting the executable flag for these desktop files.

See https://invent.kde.org/frameworks/knewstuff/-/commit/b74815f570eb93e93fe6aa4e930465c1b047b922
---
 data/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index af8736f..58f07ba 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -6,7 +6,7 @@ install(DIRECTORY
     kmoretools-desktopfiles/
     DESTINATION ${KDE_INSTALL_DATADIR_KF}/kmoretools/presets-kmoretools
     FILES_MATCHING PATTERN "*.desktop"
-    PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
+    PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ
     )
 
 # install other files like icons, skip .sh helpers
