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

Raspberry Pi OS • Re: Why is something as simple as starting a script so hard with Raspberry Pi OS?

$
0
0
Have you read Thagrol's document?
Yes.

All of it? Including the troubleshooting advice in section 9? 9.1.6 in particular.
I followed the auto start ".desktop" method since it said that fit my use case. My command was "lxterminal -e /home/path/to/script". I also found a "Execute in terminal" option in properties so I enabled that.

It still doesn't work, no terminal window on login and I don't think there was anything in the task manager. The script works for the most part if I run it manually: on the cd path command, the quotes are ignored but the script continues with errors. It uses inotifywait to watch a folder continuously so it stays open.

Until you find the error message being thrown all any of us can do is guess. More often than not guessing wastes everyone's time.
  1. Find and post the error message(s).
  2. Tell us what you called the .desktop file (it should be some-name.desktop not just .desktop)
  3. "I also found a "Execute in terminal" option in properties so I enabled that." Properties of what?
  4. Post the exact contents of your .desktop file. Do not change/redact anything (except your external IP address if it's in there). We don't have access to your PI and we need to see more than just the command.
As for your attempt with an @reboot cronjob, that's almost never going to work for desktop programs/applications. @reboot jobs run before the desktop has started. You also failed to specify which desktop should be used (by setting $DISPLAY or $WAYLAND_DISPLAY).

Statistics: Posted by thagrol — Tue Dec 23, 2025 1:38 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles