gnome-software: don't open unsupported mimetypes

The gnome-software package can only be used for flatpaks, opening rpms,
debs and other package archives will only result in an error message.
This commit is contained in:
Michal Vasilek 2022-08-24 23:19:53 +02:00
parent a515f9d4cf
commit 1ee2f45570
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,8 @@
--- a/src/gnome-software-local-file.desktop.in
+++ b/src/gnome-software-local-file.desktop.in
@@ -9,4 +9,4 @@ Type=Application
Icon=system-software-install
StartupNotify=true
NoDisplay=true
-MimeType=application/x-rpm;application/x-redhat-package-manager;application/x-deb;application/x-app-package;application/vnd.ms-cab-compressed;application/vnd.flatpak;application/vnd.flatpak.repo;application/vnd.flatpak.ref;application/vnd.snap;
+MimeType=application/vnd.flatpak;application/vnd.flatpak.repo;application/vnd.flatpak.ref

View file

@ -1,7 +1,7 @@
# Template file for 'gnome-software'
pkgname=gnome-software
version=42.4
revision=1
revision=2
build_style=meson
configure_args="-Dvalgrind=false -Dpackagekit=false -Dfwupd=false
-Dmalcontent=false $(vopt_bool gtk_doc) -Dsoup2=true"