I have the following service:
Description=Create test directory
This service is calling a script "startup-script.sh", located on the /Desktop.
My startup-script is looking like:
sudo mkdir /home/pi/Desktop/test
sudo lxterminal -e /home/pi/Desktop/exe
Now the script is creating a new directory
test at startup via the service, but it is not opening a new terminal and running my C++ program
exe in it.
Now, when I just run my startup-script like
sudo ./startup-script.sh, it is both creating a new directory
test and opening a new lxterminal and running my C++
exe program in it, but the terminal is not opening on startup and I want this to happen.
Is it possible to do anything like this in the startup service: (this is not working.)
sudo lxterminal -e ./home/pi/Desktop/startup-script.sh &
Any thoughts on a solution to this?
Update with info from comments:
home/pi/Desktop/exe must be run when the RPi is running, so all the time, but lxterminal does not have to been run on startup anyway.