#!/bin/sh # Wrapper for starting gnome-kiosk itself (do not mess with gnome-kiosk-script). # Only purpose of this script is to deal with various gnome-kiosk versions used # in different products. This is intented to be called from systemd unit file # see live/live-root/root/.config/systemd/user/org.gnome.Kiosk@wayland.service.d/override.conf OPTS=""; # We need to invoke gnome-kiosk with option --enable-vt-switch for versions >= 50. # Otherwise switching to virtual console will be blocked by default. bsc#1261932 if gnome-kiosk --help 2> /dev/null | grep -q 'enable-vt-switch'; then OPTS="--enable-vt-switch"; fi; # run in unsafe mode to allow taking screenshots (additionally it allows DBus # introspection), as nothing else is running besides Agama and you need root # permissions to talk to the DBus session then it actually is not that unsafe exec /usr/bin/gnome-kiosk --unsafe-mode $OPTS