Chapter 17. Restricting the session to a single application
You can start the GNOME session in single-application mode, also known as kiosk mode. In this session, GNOME displays only a full-screen window of the application that you have selected.
17.1. Single-application mode
Single-application mode is a modified GNOME session that reconfigures the Mutter window manager into an interactive kiosk. This session locks down certain behavior to make the standard desktop more restrictive. The user can interact only with a single application selected by the administrator.
You can set up single-application mode in a number of fields, from communication to entertainment or education, and use it as a self-serve machine, an event manager, a registration point, and so on.
The single-application mode configuration is available from the
17.2. Enabling single-application mode
This procedure installs and enables single-application mode, which restricts the GNOME session to a single application.
# yum install gnome-session-kiosk-session
As the user that will open the single-application session, create the
[user]$ mkdir -p ~/.local/bin [user]$ touch ~/.local/bin/redhat-kiosk
/home/user/.local/bin/redhat-kioskfile and enter the executable name of the application that you want to launch in single-application mode.
For example, to launch the Firefox browser in single-application mode, enter the following content:
#!/bin/sh while true; do firefox --kiosk https://example.org done
while trueloop ensures that the application restarts if it terminates for any reason.
Make the file executable:
[user]$ chmod +x ~/.local/bin/redhat-kiosk
If you created the file or its containing directories as a different user than the single-application user, such as
root, ensure that the file has the correct permissions:
# chown -R user:group ~user/.local
- At the GNOME login screen, select the Kiosk session from the cogwheel button menu and log in as the single-application user.