Chromium AutoStart Command Line

LOVE DietPi, and really love the new option to launch Chromium directly, without having to start a desktop first. What I’m wondering is how I can modify or specify the command line used to launch Chromium when it’s configured as the autostart option.

I’m using DietPi to create a very limited kiosk on RPi3, and I’d like Chromium to start in kiosk mode, fullscreen, to a particular web page. I have the working command line to launch Chromium the way I want it, but when setting AutoStartTarget to 11 to launch Chromium with no desktop, I don’t see a way to specify the command line used for launch.

Is it possible to do this?

Thanks!

Hi,

If you can provide us with the command line arguments to run in Kiosk mode, i’ll add that option into DietPi-Autostart and give you instructions to update the script :slight_smile:

Another option, edit the sourcecode as needed:
https://github.com/Fourdee/DietPi/blob/master/dietpi/login#L140

In /DietPi/dietpi/login

^^ Just bear in mind, updating DietPi will overwrite your changes as all scripts are replaced.

The command line will be something along the lines of

chromium --bwsi --disable-breakpad --kiosk --noerrdialogs <site>

Maybe it would be possible to adjust the autostart settings to allow specifying the command line?

I’ll try modifying the login script manually and see how that goes.

Thanks!

Great idea.

I’ll add a “custom” autostart option, that will launch a bash script in which you can put those command lines:
https://github.com/Fourdee/DietPi/issues/916

That will be awesome. Thank you!

Hi,

All done, available in v150, but we can update the 2 scripts now with:

wget https://github.com/Fourdee/DietPi/raw/testing/dietpi/login -O /DietPi/dietpi/login
wget https://github.com/Fourdee/DietPi/raw/testing/dietpi/dietpi-autostart -O /DietPi/dietpi/dietpi-autostart

Then simply run and select “Custom”

dietpi-autostart

Check out DietPi “dev” branch: https://github.com/Fourdee/DietPi/blob/master/BRANCH_SYSTEM.md

Or you have to wait until v.153 come out: https://github.com/Fourdee/DietPi/blob/dev/CHANGELOG.txt#L21

Thanks. In v153 autostart works fine!