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 \") ")