From 610a2867ea683b0968864a811a7d6e443d929db5 Mon Sep 17 00:00:00 2001 From: Schlomo Schapiro Date: Fri, 15 Nov 2013 13:55:10 +0100 Subject: [PATCH] chromium is on wheezy, chromium-browser on Ubuntu lightdm is only on Ubuntu --- src/DEBIAN/control | 4 ++-- src/DEBIAN/postinst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DEBIAN/control b/src/DEBIAN/control index 64adf0b..d10b581 100755 --- a/src/DEBIAN/control +++ b/src/DEBIAN/control @@ -1,11 +1,11 @@ Package: kiosk-browser -Version: 28 +Version: 29 Priority: optional Section: web Architecture: all Maintainer: Schlomo Schapiro Pre-Depends: nodm -Depends: chromium-browser, x11-xserver-utils, metacity, xdotool, x11-apps, sudo, imagemagick, debconf +Depends: chromium | chromium-browser, x11-xserver-utils, metacity, xdotool, x11-apps, sudo, imagemagick, debconf Homepage: https://github.com/ImmobilienScout24/kiosk-browser Description: Kiosk Browser Setup system to work as a kiosk browser, showing only a full-screen browser. diff --git a/src/DEBIAN/postinst b/src/DEBIAN/postinst index 1173491..f428c13 100755 --- a/src/DEBIAN/postinst +++ b/src/DEBIAN/postinst @@ -24,8 +24,8 @@ mkdir -p /var/lib/kiosk-browser/{.cache,.config/chromium,.pki} chown -R kiosk-browser:kiosk-browser /var/lib/kiosk-browser/{.cache,.config/chromium,.pki} -# if lightdm is running stop if first -if status lightdm ; then +# if lightdm is running stop if first (only on Ubuntu) +if test -r /etc/init/lightdm.conf && status lightdm ; then stop lightdm || : sleep 5 # give it a moment to stop everything fi