Skip to content

Commit

Permalink
debconf answer for lightdm did not work and I don't understand debconf.
Browse files Browse the repository at this point in the history
Just prevent others from modifying the config file with immutable bit.
  • Loading branch information
schlomo committed Oct 4, 2013
1 parent 25a5919 commit 6473645
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build/
out/
Binary file removed out/kiosk-browser_1.20_all.deb
Binary file not shown.
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: 21
Version: 22
Priority: optional
Section: web
Architecture: all
Expand Down
5 changes: 4 additions & 1 deletion src/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ if ! getent passwd kiosk-browser >/dev/null; then
mkdir -p /var/lib/kiosk-browser
fi

# disable lightdm and enable nodm
# disable lightdm and enable nodm AND MAKE IT STICK :-)
chattr -i /etc/X11/default-display-manager || :
echo "/usr/sbin/nodm" >/etc/X11/default-display-manager
chattr +i /etc/X11/default-display-manager || :

# 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
11 changes: 0 additions & 11 deletions src/DEBIAN/preinst

This file was deleted.

0 comments on commit 6473645

Please sign in to comment.