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

Advanced users • Re: KEEP autostart terminal open like in UI

$
0
0
  1. You say "None of them did the expected like I would get from the UI by opening the terminal followed by a [...]". So what do they do and what were you expecting? Remember we can't see your Pi or your code.
  2. You should really be using your user's autostart file not the systemwide one. in /etc.
  3. Your autostart line doesn't run your code with sudo yet your manual command does. This may be a factor but it may also be an unnecessary use of sudo
  4. The autostart file is not a shell script so some shell specific functionality cannot be included there.
  5. Assuming your command is correctly passed to lxterminal, the echo won't run until your python script exits.
  6. I've no idea whether the quoting around your -e argument will be enough. It may not be being interpreted correctly. Put those three command into a shell script and call the shell script from autostart instead.
For more troubleshooting advice and alternative methods see Running A Program At Start Up A Beginner's Guide

Statistics: Posted by thagrol — Tue Mar 19, 2024 5:51 pm



Viewing all articles
Browse latest Browse all 5273

Trending Articles