Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Commit

Permalink
Fix session reliability issue on Xenial
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekkio committed Jul 16, 2016
1 parent 1de6b12 commit 7835473
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.swp
*~
debian/debhelper-build-stamp
debian/files
debian/gnome-session-xmonad/
debian/gnome-session-xmonad.debhelper.log
Expand Down
9 changes: 9 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
gnome-session-xmonad (1.0-1xenial1) xenial; urgency=medium

* Make sure gnome-xmonad is listed in /etc/upstart-xsessions. Current Ubuntu
scripts /etc/X11/Xsession.d check this, and the session does not work
reliably without it
* Depend on upstart to ensure /etc/upstart-xsessions exists

-- Joonas Javanainen <joonas.javanainen@gmail.com> Sat, 16 Jul 2016 14:50:33 +0300

gnome-session-xmonad (1.0-0xenial1) xenial; urgency=medium

* Initial release for Xenial
Expand Down
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Package: gnome-session-xmonad
Architecture: all
Depends: gnome-session-flashback,
xmonad (>= 0.11-9),
libghc-xmonad-contrib-dev (>= 0.11.3-3)
libghc-xmonad-contrib-dev (>= 0.11.3-3),
upstart,
${misc:Depends}
Description: GNOME Session Manager - XMonad session
11 changes: 11 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
set -e

# Make sure we are listed in upstart-xsessions
if ! grep -qxF 'gnome-xmonad' /etc/upstart-xsessions; then
echo 'gnome-xmonad' >> /etc/upstart-xsessions
fi

#DEBHELPER#

exit 0

0 comments on commit 7835473

Please sign in to comment.