I have a single-board computer (Libre Computer Le Potato) that I'm trying to use to run a wall display. I want it to automatically launch X after it boots, and start Firefox.
Currently, I can get as far as starting the X server. My understanding is that now I need to make a ~/.xsession file to run Firefox, but when I do, the computer gets stuck in a loop.
The the .xsession file I'm using is simple:
#!/bin/bash
# invoke global X session script
echo hey
. /etc/X11/Xsession
echo heyo
exec ~/autorun.sh
Where autorun.sh just contains the command to start Firefox. The .xsession-errors file that is produced is made up of blocks like this:
Xsession: X session started for kiosk at Sat Feb 24 20:46:13 UTC 2024
dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1002/bus
dbus-update-activation-environment: setting DISPLAY=:0
dbus-update-activation-environment: setting XAUTHORITY=/home/kiosk/.Xauthority
localuser:kiosk being added to access control list
dbus-update-activation-environment: setting QT_ACCESSIBILITY=1
hey
There are about four of those blocks per second.
When there's no local .xsession file, x starts without issue. What's going on here?
Asked by Obliterax Scourge of Nations
(11 rep)
Feb 24, 2024, 09:02 PM