Page 1 of 1

Auto strat app on Xserver use custom.sh

Posted: Tue Jan 05, 2021 2:47 pm
by tcornilleau
Guys I am looking for help again :)

how to setup an auto start of an app without desktop with only an Xserver ?

I tried boot scripts via dietpi-config > AutoStart options > Custom. I added my command to /var/lib/dietpi-autostart/custom.sh

Code: Select all

#!/bin/bash
#---Examples---

# Chromium
#xinit chromium

# Desktop
#startx

# Print Hello
#echo "Hello"

#---Put your code below this line---
startx

echo -e "Start in few second"
sleep 5
./home/dietpi/electron-tutorial-app-linux-armv7l/electron-tutorial-app


hope i was clear

Much Thanks in advance