Skip to content

Running as a Kiosk

We’ll be using Chromium-based browsers for this guide. To run Television Simulator in a full-screen kiosk, you can use the following command-line command:

Terminal window
chromium --kiosk --autoplay-policy=no-user-gesture-required --unsafely-treat-insecure-origin-as-secure --disable-web-security --user-data-dir=some-data-dir http://(your TVS URL)

Here’s a breakdown of each option:

  • chromium: the executable of the browser. Might be google-chrome or brave, ungoogled-chromium etc. (only you know which one you installed)
  • --kiosk: Runs in kiosk mode, full screen with no menu bar or address bar. Use command + q alt + f4 to quit.
  • --autoplay-policy=no-user-gesture-required: Disables the autoplay restrictions that force TVS to start muted
  • --unsafely-treat-insecure-origin-as-secure: Allows a regular HTTP connection to be treated as an HTTPS connection.
  • http:// your TVS URL: the place TVS is hosted on your local network. Unless you trust a public instance and the people running it I would stick to a LAN IP (http://192.168.1.123:8080 or whatever your IP is).

The command does the same thing but it isn’t quite the same syntax. Press win + r win + r to open the Run dialog, then paste the following command:

Terminal window
"C:\Program Files\Google\Chrome\Application\chrome.exe" --kiosk --autoplay-policy=no-user-gesture-required --unsafely-treat-insecure-origin-as-secure --disable-web-security --user-data-dir="C:\tvs-kiosk-profile" http://localhost:3990

Before running, verify the following:

  • Make sure Google Chrome is installed or change the path to the executable of your Chromium-based browser of choice.
  • Change the URL at the end to your TVS URL. If you’re running it on the same machine using the Windows Launcher, it defaults to http://localhost:3990
  • The --user-data-dir path is a folder where the browser will save its data for the kiosk sessions. You can change it to whatever you want but make sure it’s a folder that’s not used for anything else.

If you want to run this command whenever you log in, you can add it to the Startup folder:

  1. Press win + r win + r to open the Run dialog.

  2. Type shell:startup and press Enter. This will open the Startup folder.

  3. Right-click inside the folder, select New > Text Document, and rename it to something like TVS Kiosk.bat. Make sure to change the file extension from .txt to .bat.

  4. Right-click the new .bat file, select Edit, and paste the command from above into the file. Save and close.

If a web service you rely on has no CORS headers, you might run into issues when trying to access it from Television Simulator since it runs in a browser.

  • --disable-web-security: Allows you to access resources which have CORS restrictions.
  • --user-data-dir=some-data-dir: Required if using --disable-web-security: Chromium runs in an isolated sandbox to try and protect you; it’ll save all user data somewhere else. Pick a folder path here and it looks like it’ll be created if it doesn’t exist.