Skip to content

Fix the sysvinit scripts of the chromium and qt-kiosk-browser launchers - #144

Merged
otavio merged 4 commits into
OSSystemsEmbeddedLinux:masterfrom
lucianogdittgen:fix/browser-launchers-sysvinit
Nov 11, 2026
Merged

otavio merged 4 commits into
OSSystemsEmbeddedLinux:masterfrom
lucianogdittgen:fix/browser-launchers-sysvinit

Conversation

@lucianogdittgen

Copy link
Copy Markdown
Contributor

Both sysvinit scripts were silent no-ops:

  • chromium-ozone-wayland-init: INITSCRIPT_NAME was ${BPM}, an undefined variable, so update-rc.d registered a script with that literal name. DAEMON pointed at /usr/bin/chromium-ozone-wayland, but meta-browser installs only /usr/bin/chromium (which is what the systemd unit already runs).
  • qt-kiosk-browser-init: the script was installed as /etc/init.d/kiosk, while INITSCRIPT_NAME, the systemd unit and /etc/default use qt-kiosk-browser. NAME made it look for a binary and config that do not exist, and it never read /etc/default/qt-kiosk-browser (WAYLAND_DISPLAY, XDG_RUNTIME_DIR, QTWEBENGINE_CHROMIUM_FLAGS).

Tested with stub browser layers: package_qa passes for oel, oel + sysvinit and oel-tiny + sysvinit, systemd packaging is unchanged, and the sysvinit postinst runs update-rc.d on the real script names.

…name

INITSCRIPT_NAME was "${BPM}", an undefined variable, so update-rc.d
registered a script literally named "${BPM}" and the installed
/etc/init.d/chromium-ozone-wayland never started. Tested: package_qa
with DISTRO=oel-tiny + sysvinit; the postinst now runs update-rc.d on
chromium-ozone-wayland.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
…ript

meta-browser installs the browser only as /usr/bin/chromium; there is
no /usr/bin/chromium-ozone-wayland, so the "[ -x $DAEMON ] || exit 0"
guard made the sysvinit script a silent no-op. The systemd unit already
runs /usr/bin/chromium. NAME stays, as it names the pidfile and the
/etc/default file.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
The script was installed as /etc/init.d/kiosk while INITSCRIPT_NAME,
the systemd unit and the /etc/default file all use qt-kiosk-browser, so
update-rc.d linked a script that does not exist.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
…onfig

NAME was "qt-kiosk-browser-init", so the script looked for
/usr/bin/qt-kiosk-browser-init and /etc/qt-kiosk-browser-init.conf;
neither exists, and "test -x || exit 0" made it a silent no-op. It also
never read /etc/default/qt-kiosk-browser, which carries WAYLAND_DISPLAY,
XDG_RUNTIME_DIR and QTWEBENGINE_CHROMIUM_FLAGS for the systemd unit.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants