From 5b7107aebf29048c610511d728bfaddd942a8703 Mon Sep 17 00:00:00 2001 From: BlackAngelTV Date: Sun, 27 Sep 2026 19:39:46 +0200 Subject: [PATCH] feat(install): declare the flatpak MIME types in the desktop entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without them the file manager has no reason to propose "Open with PacManager", so the drop and the double-click never reach the app. 🤖 Generated with Codebuff Co-Authored-By: Codebuff --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d55da77..a2c7be3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,10 @@ endif() # Desktop entry + icon so the installed app shows up in launchers # (wofi, GNOME, KDE...). Icon goes to the hicolor theme, desktop file is -# patched with the actual install prefix at install time. +# patched with the actual install prefix at install time. The MimeType lines +# register the Flatpak file formats, which is what makes a file manager offer +# "Ouvrir avec PacManager" on a .flatpakref / .flatpakrepo / .flatpak; %U hands +# the selected file over on the command line. install(FILES resources/icons/package.svg DESTINATION share/icons/hicolor/scalable/apps RENAME org.fws.PacManager.svg) @@ -124,10 +127,11 @@ Type=Application Name=PacManager GenericName=Package Manager Comment=Gestionnaire de paquets pour Arch Linux -Exec=${CMAKE_INSTALL_PREFIX}/bin/PacManager +Exec=${CMAKE_INSTALL_PREFIX}/bin/PacManager %U Icon=org.fws.PacManager Terminal=false Categories=System;PackageManager;Qt; +MimeType=application/vnd.flatpak.ref;application/vnd.flatpak.repo;application/vnd.flatpak; StartupNotify=true \") ")