Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin

DESC="chromium-browser"
NAME="chromium-ozone-wayland"
DAEMON=/usr/bin/$NAME
DAEMON=/usr/bin/chromium
CHROMIUM_ARGS=""
PIDFILE=/var/run/$NAME.pid

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CHROMIUM_EXTRA_ARGS ?= ""
SYSTEMD_SERVICE:${PN} = "chromium-ozone-wayland.service"

# Start after weston-init
INITSCRIPT_NAME = "${BPM}"
INITSCRIPT_NAME = "chromium-ozone-wayland"
INITSCRIPT_PARAMS = "start 10 5 2 . stop 19 0 1 6 ."

do_configure[noexec] = "1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

### BEGIN INIT INFO
# Provides: $NAME
# Provides: qt-kiosk-browser
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
Expand All @@ -11,13 +11,20 @@
set -e

DESC="Qt kiosk browser init"
NAME="qt-kiosk-browser-init"
NAME="qt-kiosk-browser"
DAEMON=/usr/bin/$NAME
DAEMON_ARGS="--platform wayland /etc/$NAME.conf --no-sandbox"
PIDFILE=/var/run/$NAME.pid

test -x ${DAEMON} || exit 0

# Same environment as the systemd unit's EnvironmentFile
if [ -r /etc/default/$NAME ]; then
set -a
. /etc/default/$NAME
set +a
fi

umask 022

. /etc/init.d/functions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ INITSCRIPT_NAME = "qt-kiosk-browser"

do_install() {
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
install -Dm 0755 ${UNPACKDIR}/${PN}.initd ${D}${sysconfdir}/init.d/kiosk
install -Dm 0755 ${UNPACKDIR}/${PN}.initd ${D}${sysconfdir}/init.d/qt-kiosk-browser
fi
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -Dm 0644 ${UNPACKDIR}/${PN}.service ${D}${systemd_system_unitdir}/qt-kiosk-browser.service
Expand Down
Loading