Enable disabling system-wide autostart items
Submitted by Andreas Gnau
Link to original bug (#744881)
Description
The autostart currently only provides support for editing per-user-autostart items.
It would be nice if we could provide a UI that enables the user to disable (or even edit) system-wide autostart options.
Behind the scenes such a functionality would copy the system-wide .desktop-file from /etc/xdg/autostart and add X-GNOME-Autostart-enabled=false when an item is disabled. When enabling an item again, the file should be compared against its counterpart in /etc/xdg/autostart/, if the files are identical, the file can be deleted, otherwise it should be changed to X-GNOME-Autostart-enabled=true
If editing is allowed as well, then the following aspects should be taken care of:
- When an entry is edited and later edited again to its system-wide version. the per-user version file in .config/autostart should be deleted
- Provide some indication if there are user-level changes to a global-entry
- Provide functionality to revert any user-level changes (by deleting the per-user file)