Skip to content

Commit

Permalink
Add symlink to nodm for lightdm debconf stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
schlomo committed Oct 4, 2013
1 parent 026dac8 commit 040d918
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: kiosk-browser
Version: 25
Version: 26
Priority: optional
Section: web
Architecture: all
Expand Down
2 changes: 2 additions & 0 deletions src/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ fi

# disable lightdm and enable nodm
echo "/usr/sbin/nodm" >/etc/X11/default-display-manager
# lightdm needs this for the debconf stuff because it uses kiosk-browser as a display manager
ln -sf nodm /usr/sbin/kiosk-browser

# disable X cursor
sed -i -e 's/NODM_X_OPTIONS=.*/NODM_X_OPTIONS="-nocursor -nolisten tcp"/' -e 's/NODM_ENABLED=.*/NODM_ENABLED=true/' -e 's/NODM_USER=.*/NODM_USER=kiosk-browser/' /etc/default/nodm
Expand Down
1 change: 1 addition & 0 deletions src/DEBIAN/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ case "$1" in
. /usr/share/debconf/confmodule
db_purge
fi
rm -f /usr/sbin/kiosk-browser

;;
*)
Expand Down

0 comments on commit 040d918

Please sign in to comment.