Hi,
I'm using DietPi v6.31.2 on RPi 3B+ with LXDE installed. From the diet-autostart, I have enabled Chromium. Now there are two issues.
If I select the dietpi user, chromium fails to start. Mostly a permission error, I've tried to remove .XAuthority file, but no success. How do I add appropriate permission to my user.
I don't want the user to press ALT+F4 and exit the chromium. For that I've create a script that uses xmodmap to remove the KeyBindings. I'm unable to start this script with chromium autostart. I've tried the following:
Create a systemd service that runs on startup, but the service fails with error unable to open display '', meaning it runs before xserver starts.
Edit .profile and add the script to execute, the script doesn't run.
Edit custom startup script, then chromium doesn't run.
Yes, I did. I called the chromium autostart script inside that and then called my script. All times, my custom script doesn't seem to be running or throwing error of
unable to find display ''
I modified chromium-autostart to run my script from there by modifying the last lines as follows:
ok that's a tricky one. I'm able to manipulate the keyboard bindings if I first start a xsession and manually launch chromium out of it. But this has nothing to do with an automated start of chromium right after booting the system as it require user intervention.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Yeah, exactly. Then I think it is not possible to directly open the chromium-browser. What can be tried is log in to desktop and then open chromium using bash script in kiosk mode and disable the keys as well. I'll try that then and post the results.
basically I just installed Chromium from dietpi-software catalogue. Once finished I used startx to create a xsession command line. There I was able to used xmodmap and launched chromium-browser once keybindings manipulated. I did not install a real desktop.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team