I have made a python application for raspberry and it needs to run into a terminal. That's totally necessary.
To do that I wrote two bash files, run_.sh and launcher.sh.
run_.sh execute the python application, while launcher.sh invoke a lxterminal and execute run_.sh
When I manually run launcher.sh with the command:
It works well. The terminal opens, the application runs and everything is ok. But when launcher.sh have to be executed in raspberry's startup, it doesn't work.
I'm using a raspberry pi 3 Raspbian: kernel version 4.14
Method of execute on startup:
sudo crontab -e @reboot sh /home/pi/bbt/launcher.sh >/home/pi/logs/cronlog 2>&1
The startup's method is working. That's no the problem. The problem is that the commando that open the xlterminal doesn't work on startup. It works, when I excute manually, but not automatically.
This is what is write into my bash files.
lxterminal --command="/bin/bash -c '/home/pi/run_.sh; /bin/bash'"
I expect that a xlterminal appears and execute the commands into run_.sh. But It show me this error:
(lxterminal:1005): Gtk-WARNING **: cannot open display: