From cda786d1e83d3782f77aca0be016f582907867c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Fri, 31 May 2013 15:57:47 -0400 Subject: [PATCH] Add upstart user job --- debian/changelog | 4 ++++ debian/lubuntu-default-settings.install | 1 + usr/share/upstart/sessions/startlubuntu.conf | 16 ++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 usr/share/upstart/sessions/startlubuntu.conf diff --git a/debian/changelog b/debian/changelog index 7fc96e4..bbac62f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ lubuntu-default-settings (0.32) UNRELEASED; urgency=low + [ Julien Lavergne ] * Add a new QLubuntu session, by using only Qt applications * usr/bin/start* - Remove gnome-keyring workaround, since we have the proper fix for ssh. @@ -16,6 +17,9 @@ lubuntu-default-settings (0.32) UNRELEASED; urgency=low * etc/xdg/lubuntu/libfm/libfm.conf - Rebase with new upstream options. + [ Stéphane Graber ] + * Add startlubuntu upstart user job. + -- Julien Lavergne Wed, 20 Mar 2013 23:23:40 +0100 lubuntu-default-settings (0.31) raring; urgency=low diff --git a/debian/lubuntu-default-settings.install b/debian/lubuntu-default-settings.install index 559bcf7..d2520fc 100644 --- a/debian/lubuntu-default-settings.install +++ b/debian/lubuntu-default-settings.install @@ -4,6 +4,7 @@ usr/share/gdm/ usr/share/lubuntu/ usr/share/lxpanel/ usr/share/lxterminal/ +usr/share/upstart/sessions/ usr/share/xsessions/ usr/share/applications/lubuntu-screenlock.desktop usr/share/applications/lubuntu-browser.desktop diff --git a/usr/share/upstart/sessions/startlubuntu.conf b/usr/share/upstart/sessions/startlubuntu.conf new file mode 100644 index 0000000..5e538b5 --- /dev/null +++ b/usr/share/upstart/sessions/startlubuntu.conf @@ -0,0 +1,16 @@ +description "Lubuntu session" +author "Stéphane Graber " + +start on started dbus and xsession SESSION=Lubuntu + +emits desktop-start +emits desktop-end + +exec startlubuntu + +post-start exec initctl emit desktop-start DESKTOP_SESSION=$DESKTOP_SESSION + +# Don't wait to avoid blocking the session from ending. +pre-stop exec initctl emit --no-wait desktop-end DESKTOP_SESSION=$DESKTOP_SESSION + +post-stop exec dbus-send --type=method_call --address=$UPSTART_SESSION /com/ubuntu/Upstart com.ubuntu.Upstart0_6.EndSession