I would like to make a Python 3.4 script that starts with my computer so that it's permanently checked to start up with the computer (edit: permanently checked means it can't be disabled via xfce4-session-settings). (Edit: This should affect all users, even future ones, but if you answered before I said this, I won't factor that in to whether I accept it.) The script does not need to end, particularly. I don't want unprivileged users to be able to uncheck it. How would I go about doing this?
Currently, they can't delete or edit (or even view the details) the entry (thankfully), because it's made for all users (even future ones). However, they can uncheck it just fine, it seems.
(I enabled it for set for all users by adding a
myScript.desktop file to
/etc/xdg/autostart and gave it the following text:
[Desktop Entry] Type=Application Name=NameOfMyScript Exec=MyScript Icon=system-run X-GNOME-Autostart-enabled=True
The script allows my IP address for a dns-based web filter to be updated. It periodically checks for a lost connection in case the router was reset and the IP address changed.
I'm on Xubuntu 14.04, 64-bit.