From ddbd1d8d7543a91beb87fdb954bcfc4c69a8455c Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Sat, 15 Aug 2026 16:42:10 +0200 Subject: [PATCH] cmake: fix QET_MIME_PACKAGE_PATH escaping CMAKE_INSTALL_PREFIX QET_MIME_PACKAGE_PATH was "../share/mime/packages/", a path relative to CMAKE_INSTALL_PREFIX. This only worked by accident with the old default prefix (/usr/local -> ../share resolves to /usr/share/mime, the conventional system location regardless of app prefix). With -DCMAKE_INSTALL_PREFIX=/usr (as used by Debian/Ubuntu packaging), the same "../share" escapes /usr entirely, landing at /share/mime instead of /usr/share/mime, which breaks dh_install (file not found under usr/) and would silently install the mime package definition outside any path desktop environments actually scan. Drop the "../" so the mime package path stays under the install prefix, matching standard practice (/usr/share/mime/packages or /usr/local/share/mime/packages). --- cmake/paths_compilation_installation.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/paths_compilation_installation.cmake b/cmake/paths_compilation_installation.cmake index f8cf763dd..9a151765f 100644 --- a/cmake/paths_compilation_installation.cmake +++ b/cmake/paths_compilation_installation.cmake @@ -28,7 +28,7 @@ if(UNIX AND NOT APPLE) set(QET_LANG_PATH "share/qelectrotech/lang/") set(QET_EXAMPLES_PATH "share/qelectrotech/examples/") set(QET_LICENSE_PATH "doc/qelectrotech/") - set(QET_MIME_PACKAGE_PATH "../share/mime/packages/") + set(QET_MIME_PACKAGE_PATH "share/mime/packages/") set(QET_DESKTOP_PATH "share/applications/") set(QET_ICONS_PATH "share/icons/hicolor/") set(QET_MAN_PATH "man/")