summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am8
-rw-r--r--doinst.sh17
-rw-r--r--slapt-update-service.desktop11
3 files changed, 16 insertions, 20 deletions
diff --git a/Makefile.am b/Makefile.am
index ff20672..1760965 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,14 +3,16 @@ SUBDIRS = po data src
pixmapdir = $(PIXMAPS_DIR)
pixmap_DATA = pixmaps/slapt-update-notifier-update.png pixmaps/slapt-update-notifier-idle.png
-SLACK_FILES = doinst.sh slack-desc slack-required
-EXTRA_DIST = $(pixmap_DATA) $(SLACK_FILES)
+desktopdir = $(sysconfdir)/xdg/autostart
+desktop_DATA = slapt-update-service.desktop
+
+SLACK_FILES = slack-desc slack-required
+EXTRA_DIST = $(pixmap_DATA) $(SLACK_FILES) $(desktop_DATA)
PKGDIR=`pwd`/pkg
pkg: all
$(MAKE) install DESTDIR=$(PKGDIR)
$(mkinstalldirs) $(PKGDIR)/install
- install doinst.sh $(PKGDIR)/install/
install slack-desc $(PKGDIR)/install/
install slack-required $(PKGDIR)/install/
-chown -R $$(stat --format "%u:%g" $(bindir)) $(PKGDIR)/$(bindir)
diff --git a/doinst.sh b/doinst.sh
deleted file mode 100644
index e224768..0000000
--- a/doinst.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-
-DEFAULT_SESSION_FILE=usr/share/gnome/default.session
-if [ -f $DEFAULT_SESSION_FILE ]; then
- ID=
- while IFS=, read CURRENTID REST
- do
- ID=$CURRENTID
- done < $DEFAULT_SESSION_FILE
-
- ID=$(( $ID + 1 ))
-
- echo "${ID},id=default${ID}" >> $DEFAULT_SESSION_FILE
- echo "${ID},Priority=50" >> $DEFAULT_SESSION_FILE
- echo "${ID},RestartCommand=slapt-update-notifier --sm-client-id default${ID}" >> $DEFAULT_SESSION_FILE
-
-fi
-
diff --git a/slapt-update-service.desktop b/slapt-update-service.desktop
new file mode 100644
index 0000000..30ebccb
--- /dev/null
+++ b/slapt-update-service.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=0.9.4
+Type=Application
+Name=slapt-update-notifier
+Comment=checks for system package upgrades
+Exec=/usr/bin/slapt-update-notifier
+StartupNotify=false
+Terminal=false
+Hidden=false
+