GLib should support stateless XDG directories by default
Submitted by Ikey Doherty
Link to original bug (#763539)
Description
Created attachment 323763 Support a stateless configuration by default
With this change we support stateless XDG directories by default. Stateless systems separate "vendor" configuration from the local system administrator configuration, facilitating smoother upgrade processes.
Given that XDG config files typically involve "/etc/xdg/autostart" files, these are invariably provided by upstream vendors by way of packages, and the administrator of the local system is free to provide their own overrides locally in the /etc/ tree.
This facilitates pure stateless implementations where it is forbidden to ship files in /etc/ through the vendor update mechanism.
For more information see: https://clearlinux.org/features/stateless
The immediate benefit of this change is the deprecation of vendor-packaging of /etc/xdg/autostart-esque files, and instead allows packaging of /usr/share/xdg, preventing potential three-way merges during updates in all packages using this.
As an example, the Budgie Desktop now uses a stateless configuration for the xdg files: https://github.com/solus-project/budgie-desktop/commit/b1f9f5b808b5b6c8e70f6677a0ee22dab555017b
This change also works throughout XFCE.
Patch 323763, "Support a stateless configuration by default":
0001-Support-a-stateless-configuration-by-default.patch