From 64736452de7d0583b43b7200db5769946094e6dd Mon Sep 17 00:00:00 2001 From: Schlomo Schapiro Date: Fri, 4 Oct 2013 15:16:44 +0200 Subject: [PATCH] debconf answer for lightdm did not work and I don't understand debconf. Just prevent others from modifying the config file with immutable bit. --- .gitignore | 1 + out/kiosk-browser_1.20_all.deb | Bin 5828 -> 0 bytes src/DEBIAN/control | 2 +- src/DEBIAN/postinst | 5 ++++- src/DEBIAN/preinst | 11 ----------- 5 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 out/kiosk-browser_1.20_all.deb delete mode 100755 src/DEBIAN/preinst diff --git a/.gitignore b/.gitignore index 567609b..3c0160d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build/ +out/ diff --git a/out/kiosk-browser_1.20_all.deb b/out/kiosk-browser_1.20_all.deb deleted file mode 100644 index 56705adb52b2481a7d17fa9f92e68a5c00d2e5ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5828 zcmai!RZts@wuN!`P+WqP;;w}v1quX;ySqCS2~JCKcXumJfl?ewk>c)7kl+-DB8#naXRVpN*W8tSy)8Vs?ZE&2pN~(3|9=b2ap+^Qkp4#~ zsAqZ_Zfn9sli!1XFHox2HZqSjS@o^Nlz*H?H%JAl{^&v%{FEW8TqdpQ(e()tq%eBN z*kI6vti&rvzpKuurm&fOzrly)OGo=|z+SZ0aKOjtodRsrT?&ei0ec6fj|V@C^RD}& zqz&=oHDZiSdifc5H%#yuTqXX+=UT`D(yR8`zsjKykXHMV;4*jBh-G-z((X!a&j29~N;xiaEcZB00x+ z{xyk6k+U4{ySD>*mFZg5yLu>(9!`Zy=uG=J{Nco?<_y%Btj2wt%Vt{wmJqGV5ecdD z$7}L5)MQ9)#iAPO&d-bo?t><68D;-gUG+*)NQ@%_ew{tgCwy>ukwSmpA|Yr~tDXxa zpzgn&wc7hV*t@_U(DOon`~3OrVJmj^1;N~I9ym!tBQp2xUSK9n-4jn^`of>wkd^Dy z6YpE&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}vZgOLWk2@k=!)gA-X6FB&olMT1>5Cy z^CH5Q0p0cyfUDO}=Z`;IOcgWMlx~zD>{P$O$Slvswfeh;P3W^zSx3QZij z8uTiv{8!0G4`jV~XjKIsf4D~(xu5lyZ>s17l`@&?Lu;J1>Yyr!91DRsp({~N46-i0 zD3Sf(Tz2GB$MX{eYKv0k@XLQ=h{NEdC%xACHHX0{NVhrVKlTYBi$F1BuMt90M?(4+ Dvz&A^ diff --git a/src/DEBIAN/control b/src/DEBIAN/control index 29ec9d7..7e2c512 100755 --- a/src/DEBIAN/control +++ b/src/DEBIAN/control @@ -1,5 +1,5 @@ Package: kiosk-browser -Version: 21 +Version: 22 Priority: optional Section: web Architecture: all diff --git a/src/DEBIAN/postinst b/src/DEBIAN/postinst index 9c5e2f5..e5bb3da 100755 --- a/src/DEBIAN/postinst +++ b/src/DEBIAN/postinst @@ -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 diff --git a/src/DEBIAN/preinst b/src/DEBIAN/preinst deleted file mode 100755 index 522d4f1..0000000 --- a/src/DEBIAN/preinst +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -e - -# http://manpages.ubuntu.com/manpages/precise/man7/debconf.7.html -export DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_FRONTEND=noninteractive - -debconf-set-selections <