I got a new Raspberry PI4 and I set it up to record some over the air TV and the app I was using allowed to set a schedule much like old school VHS recorders would. BUT you have to have the application running all the time so if you forget to start it the recording is missed. Most all the search results for Raspbery Pi or Linux about autostart a program just would not work.
Finally I found somebody who said if it had a GUI it would not load under traditional methods since the came into play before the Graphical Interface. Anyway I was having no luck. And finally under some lucky combination of search words I found this site.
Here is the gist with a few changes for my situation
You only need to do this part once, but you need to do it first. Click on Applications -> Preferences -> Main Menu Editor on your Pi desktop.
In the Main Menu Editor window click on Preferences in the first column. Check the box for Default applications for LXSession in the second column. Click Okay.
Find out the command to start the GUI program which for me was the path to the program and supposedly by adding -m afterwards would start it minimized (it didn't). But anyway /usr/bin/Kaffeine -m
Now that you have the command syntax you need to add it to the autostart sequence. Choose Applications -> Preferences -> Default applications for LXSession from your Pi desktop. Select the Autostart tab.
I think I posted it years ago and for some reason thought of it again today. Google tells me it is from the webcomic Slow Wave
Interesting interview here : http://www.tcj.com/the-jesse-reklaw-interview/