Thanks a lot.For more troubleshooting advice and alternative methods see Running A Program At Start Up A Beginner's Guide
- 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.
- You should really be using your user's autostart file not the systemwide one. in /etc.
- 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
- The autostart file is not a shell script so some shell specific functionality cannot be included there.
- Assuming your command is correctly passed to lxterminal, the echo won't run until your python script exits.
- 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.
I simply need to run the python script and nothing more. These additional commands were suggestions from other users that did not work out but I wanted to show those examples that did not work and I have already tried.
So I will try now to put into the users autostart (what is the big difference to the system wide or why is that system wide not so usefull in this case?)
and use a shellscript to run the python script.
Statistics: Posted by typxxi — Tue Mar 19, 2024 6:52 pm