[gnome-software] Add a file handler to allow Software to install local packages



commit 0cfa11794e872bf0f74410b61ac14ec2cad3ab55
Author: Richard Hughes <richard hughsie com>
Date:   Wed Jan 29 13:37:09 2014 +0000

    Add a file handler to allow Software to install local packages

 contrib/gnome-software.spec.in           |    2 +-
 po/POTFILES.in                           |    1 +
 src/Makefile.am                          |    2 ++
 src/gnome-software-local-file.desktop.in |   11 +++++++++++
 4 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/contrib/gnome-software.spec.in b/contrib/gnome-software.spec.in
index b57e0b2..bd363a1 100644
--- a/contrib/gnome-software.spec.in
+++ b/contrib/gnome-software.spec.in
@@ -62,7 +62,7 @@ cd %{buildroot}%{_datadir}/app-info/icons/fedora-20
 cd -
 
 # make the software center load faster
-desktop-file-edit %{buildroot}%{_datadir}/applications/*.desktop \
+desktop-file-edit %{buildroot}%{_datadir}/applications/org.gnome.Software.desktop \
     --set-key=X-AppInstall-Package --set-value=%{name}
 
 %find_lang %name --with-gnome
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c4a26d1..97b89fe 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,6 +3,7 @@ data/appdata/org.gnome.Software.appdata.xml.in
 [type: gettext/glade]src/app-menu.ui
 [type: gettext/glade]src/app-tile.ui
 src/org.gnome.Software.desktop.in
+src/gnome-software-local-file.desktop.in
 [type: gettext/glade]src/gnome-software.ui
 src/gs-app-folder-dialog.c
 src/gs-application.c
diff --git a/src/Makefile.am b/src/Makefile.am
index 61750b1..b45e4fd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -19,6 +19,7 @@ AM_CPPFLAGS =                                         \
 @INTLTOOL_DESKTOP_RULE@
 desktopdir = $(datadir)/applications
 desktop_in_files =                                     \
+       gnome-software-local-file.desktop.in            \
        org.gnome.Software.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
@@ -252,6 +253,7 @@ MAINTAINERCLEANFILES =                                      \
        Makefile.in
 
 DISTCLEANFILES =                                       \
+       gnome-software-local-file.desktop               \
        gnome-software-service.desktop                  \
        org.gnome.Software.desktop                      \
        org.gnome.Software.service
diff --git a/src/gnome-software-local-file.desktop.in b/src/gnome-software-local-file.desktop.in
new file mode 100644
index 0000000..049c855
--- /dev/null
+++ b/src/gnome-software-local-file.desktop.in
@@ -0,0 +1,11 @@
+[Desktop Entry]
+_Name=Software Install
+_Comment=Install selected software on the system
+Categories=System;
+Exec=gnome-software --local-filename=%f
+Terminal=false
+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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]