[gnome-software/wip/launcher: 7/7] Autostart the service



commit 6ca27370512fd033d925c77f53fb5f7632ede4b3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 15 22:26:40 2013 -0400

    Autostart the service
    
    If we are doing monitoring here, we need to make sure the
    service is started at login.

 src/Makefile.am |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 49d45fd..e8d6fba 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -40,6 +40,17 @@ org.gnome.Software.service: Makefile
         echo 'Exec=${libexecdir}/gnome-software-service') > $  tmp &&  \
         mv $  tmp $@
 
+autostartdir = $(sysconfdir)/xdg/autostart
+autostart_DATA = gnome-software-service.desktop
+
+gnome-software-service.desktop: Makefile
+       $(AM_V_GEN) (echo '[Desktop Entry]';                            \
+        echo "Type=Application";                                       \
+        echo "Name=GNOME Software";                                    \
+        echo "Exec=${libexecdir}/gnome-software-service";              \
+        echo "OnlyShowIn=GNOME;") > $  tmp &&                          \
+        mv $  tmp $@
+
 bin_PROGRAMS =                                         \
        gnome-software
 


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