I'm making a program in C that has the option (for the user) to launch automatically at Linux startup. I'm looking for a code snippet or something helpful. The way I want to do it, is programmatically if the user selected auto-startup, then (code I am looking for)
I saw many thing about cron jobs and /etc/rd.somethings
, but it doesn't seems to be what I'm looking for.