[gnome-software] Autostart the service



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

    Autostart the service
    
    We are doing monitoring now, so 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 6be4e8f..71c2373 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -42,6 +42,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]