Auto start firefox-esr in kiosk mode on boot

From Nocrashwiki
  1. Create the autostart directory:
mkdir -p /home/<USER>/.config/autostart
  1. Open a new text file in your preferred editor.
  2. Add the following three lines:
[Desktop Entry]
Type=Application
Exec=mousepad

Replace mouespad with the command of your choice.

  1. Save in /home/<USER>/.config/autostart with a name ending in .desktop e.g.
mousepad.desktop
  1. Logout and login or reboot.