Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3576

Advanced users • KEEP autostart terminal open like in UI

$
0
0
I have been struggling a lot and tried the sticky notes to autostart and also this one to the same topic viewtopic.php?t=291785

I have a pi 3 doing only 1 job: running grott to supply HA with mqtt messages
grott is basically a python 3 script which I need to start once the pi has rebooted

if have edited the autostart

Code:

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
and tried already these suggestions

Code:

@lxpanel --profile LXDE-pi@pcmanfm --desktop --profile LXDE-pi@xscreensaver -no-splash# lxterminal --geometry=120x40 --title=Updating -e bash -c  '/home/pi/Desktop/grott/autostartgrott.sh# @lxterminal --geometry=120x40 -e sudo python3 /home/pi/Desktop/grott/grott.py -v & dir# @lxterminal --geometry=120x40 -e "sudo python3 /home/pi/Desktop/grott/grott.py -v ; bash"@lxterminal --geometry=120x40 -e 'python3 /home/pi/Desktop/grott/grott.py -v ; echo "waiting forever" ; sleep infinity'
None of them did the expected like I would get from the UI by opening the terminal followed by a

Code:

sudo python3 /home/pi/Desktop/grott/grott.py -v
Looks soooooo easy but must be so hard to achieve, any suggestions or links ?

Statistics: Posted by typxxi — Tue Mar 19, 2024 5:32 pm — Replies 3 — Views 67



Viewing all articles
Browse latest Browse all 3576

Trending Articles