I’ve found out the hard way: Running the script during startup, and running it using the proper user authorization, are two different things.
And environment —
DISPLAY
andPATH
in particular.You’re right and I’m dumb. I forgot to absolute-ify one of the paths, which caused the script to be dependent on my user environment, which isn’t loaded by the desktop file.
Knowing that the environment is finicky, I made sure to only use absolute paths to all files and executables.
But thanks for the hint.
Never heard of a .application file
Normally you need a .desktop file
Indeed, I made this meme from memory and got the extension wrong.
I corrected the meme. Thanks for pointing out the error
“Can you mount the /media/user/Backup drive on startup?”
“Sure.”
“… where is it?”
“Somewhere else.”
Drop that sucka in /etc/fstab
If I remember correctly, when fstab is incorrect even if the partition is not essential it will stop you from booting
gnome-terminal -- sh -c "my_command"
This will open that command in new terminal window at login