Chrome kiosk setup¶
This guide explains how to launch Chrome on a dedicated sign device so that it starts fullscreen, keeps its offline cache across restarts, and can play sound where a template needs it. Which device to run it on is discussed on Choosing playback hardware.
Short answer¶
Run the sign in its own Chrome profile (--user-data-dir), fullscreen, and not in Incognito.
Incognito used to be the recommendation here because it avoids the restore-session prompt after a power loss. It has a cost that outweighs that: Incognito storage is ephemeral, so the sign's offline cache is thrown away every time Chrome starts and every template asset, videos, fonts and bundled libraries included, is downloaded again. A dedicated profile keeps the cache; the restore prompt is covered below.
The launch command¶
Windows, as a shortcut target or a scheduled task:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --user-data-dir="C:\SignProfile" --start-fullscreen --no-first-run --autoplay-policy=no-user-gesture-required "https://YOUR_SIGN_URL"
| Flag | What it does |
|---|---|
--user-data-dir="C:\SignProfile" |
A separate profile for the sign: its own cache, service worker and settings. Nothing is shared with anyone's normal Chrome, and both can run at the same time. It is also what makes the other flags reliable; see below. |
--start-fullscreen |
Fullscreen from the first frame. --kiosk is the stricter alternative: no address bar, and fullscreen cannot be left from the keyboard. |
--no-first-run |
Suppresses the first-run prompts in a fresh profile. |
--autoplay-policy=no-user-gesture-required |
Lets a template play sound without anyone touching the screen. Without it Chrome refuses audible autoplay until a tap, and templates fall back to muted playback. Harmless for templates without sound. |
Then add the shortcut to the current user's Startup folder so it runs at login:
Long sign URLs in a Windows shortcut
A Windows shortcut's Target field holds at most 260 characters. If a long sign URL does not fit, set the URL as the profile's start page instead (Chrome Settings, On startup, Open a specific page) and leave the URL out of the command.
macOS¶
open -a "Google Chrome" --args --user-data-dir="$HOME/SignProfile" --start-fullscreen --no-first-run --autoplay-policy=no-user-gesture-required "https://YOUR_SIGN_URL"
Run it from a Login Item, or a LaunchAgent for managed deployments.
Linux¶
google-chrome --user-data-dir="$HOME/sign-profile" --start-fullscreen --no-first-run --autoplay-policy=no-user-gesture-required "https://YOUR_SIGN_URL"
chromium-browser takes the same arguments. Autostart from ~/.config/autostart/*.desktop or the
display manager's session script.
The restore prompt after an unclean shutdown¶
After a power cut or a forced restart, Chrome may show a "Restore pages?" bubble on the next start.
Chrome no longer has a command-line switch that suppresses it; --disable-session-crashed-bubble,
which older guides recommend, has been removed. The bubble does not block the page and it never
restores anything on its own, and with the sign URL in the launch command the sign loads regardless.
If it shows on a device, dismiss it once; it only returns after the next unclean shutdown.
Why the launch flags need a dedicated profile¶
Chrome reads its command-line flags once, when the process starts. A second launch against a
profile that is already open does not start a new process: it opens a tab in the running one and the
new flags are silently ignored. On a shared profile that turns the autoplay flag into a daily
discipline, because any Chrome window that was already open means the sign comes up looking perfect
with no sound. With its own --user-data-dir the sign never shares a process with anything else.
To confirm the flags actually took effect on a device, open chrome://version in the sign window and
read the Command Line row.
A machine-wide alternative for sound¶
If the flag is not practical, for instance on a laptop that is also used normally, Chrome's
AutoplayAllowlist policy allows audible autoplay for the sign's origin however Chrome is launched,
and it survives updates. On Windows it is a registry key under
HKLM\SOFTWARE\Policies\Google\Chrome\AutoplayAllowlist, with string values named 1, 2 and so on
holding URL patterns such as https://YOUR_SIGN_HOST. Autoplay is judged by the origin of the
page, so allow-listing the sign's host also covers a livestream fetched from another host. Verify
on chrome://policy, which shows whether each policy was recognized. Note that Chrome then shows
itself as managed by an organization, and that a policy nobody removes outlives the event.
Storage quota¶
The offline cache lives in the profile, so with a dedicated profile it persists across restarts. Very large template media can still exceed the device's quota. To check on the sign, open the DevTools console on the sign URL and run:
const { quota, usage } = await navigator.storage.estimate();
console.log("Quota GiB:", (quota / 1024 ** 3).toFixed(2));
console.log("Usage GiB:", (usage / 1024 ** 3).toFixed(2));
Compare the quota against the total asset size of the templates assigned to that room or event, and watch the Network panel for repeated large downloads; that is the symptom of a cache that is not holding.
Notes¶
- Keep the sign URL in the launch command or the profile's start page, never in a bookmark someone has to click.
- To reset a misbehaving sign completely, close Chrome and delete the profile directory. The next launch rebuilds the cache from scratch; the first start after a reset is slow while every template asset is fetched, which is not a hang.
Related¶
- How digital signs work — what the browser is asked to do
- Choosing playback hardware
- Sign URLs — the URL to open
- Screenshotter — monitoring the screen once it runs