Guys I am looking for help on how to setup an auto start of an app once desktop is running.
I tried boot scripts via dietpi-config > AutoStart options > Custom. I added my command to /var/lib/dietpi-autostart/custom.sh
#!/bin/bash
#---Examples---
# - Chromium
#xinit chromium
# - LXDE
#startx
# - Print hello
#echo -e "Hello"
#---Put your code below this line---
echo -e "Start in few second"
sleep 15
echo -e "start"
sleep 4
startx
sleep 10
./home/dietpi/electron-tutorial-app-linux-armv7l/electron-tutorial-app
but durring the sleep, i could see on the console the login banner ask to “hit enter” and then when the command startx is call the desktop start but i got an error popup “no session for pid 658” then the electron-tutorial-app didn’t strat.
however when i call the command
systemctl status dietpi-autostart_custom
i got an “Active: active (running)”
hope i was clear
Much Thanks in advance