feat(install): declare the flatpak MIME types in the desktop entry
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 <noreply@codebuff.com>
This commit is contained in:
1 file changed
+6
-2
+6
-2
@@ -111,7 +111,10 @@ endif()
|
|||||||
|
|
||||||
# Desktop entry + icon so the installed app shows up in launchers
|
# Desktop entry + icon so the installed app shows up in launchers
|
||||||
# (wofi, GNOME, KDE...). Icon goes to the hicolor theme, desktop file is
|
# (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
|
install(FILES resources/icons/package.svg
|
||||||
DESTINATION share/icons/hicolor/scalable/apps
|
DESTINATION share/icons/hicolor/scalable/apps
|
||||||
RENAME org.fws.PacManager.svg)
|
RENAME org.fws.PacManager.svg)
|
||||||
@@ -124,10 +127,11 @@ Type=Application
|
|||||||
Name=PacManager
|
Name=PacManager
|
||||||
GenericName=Package Manager
|
GenericName=Package Manager
|
||||||
Comment=Gestionnaire de paquets pour Arch Linux
|
Comment=Gestionnaire de paquets pour Arch Linux
|
||||||
Exec=${CMAKE_INSTALL_PREFIX}/bin/PacManager
|
Exec=${CMAKE_INSTALL_PREFIX}/bin/PacManager %U
|
||||||
Icon=org.fws.PacManager
|
Icon=org.fws.PacManager
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=System;PackageManager;Qt;
|
Categories=System;PackageManager;Qt;
|
||||||
|
MimeType=application/vnd.flatpak.ref;application/vnd.flatpak.repo;application/vnd.flatpak;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
\")
|
\")
|
||||||
")
|
")
|
||||||
|
|||||||
Reference in new issue
Block a user