Background We run a series of CentOS 6.5 servers which each host multiple users (~100s) coming in via X-Window XDMP from their MS Windows desktops. These users don't need the host of default applications that get launched, like pulse, volume-control, vino, polkit, etc. So we want to customize the default set of applications launched. However, we do routine yum updates on these machines and do not want our customization overwritten. Yum/rpm includes some provisions for preserving changes to designated configuration files.
Question We can customize the set of applications launched by either 1) deleting or 2) inserting the line "Hidden=true" into the appropriate .desktop files in /etc/xdg/autostart/, however, several of these .desktop files are not specified as configuration files in the RPM packages that install them (e.g. gnome-media, polkit-gnome, policycoreutils, vino). This means these files might be overwritten by a yum update operation should the package be updated.
Proposed Solution (1) Brute force: write an after-yum-update script which goes and redoes the changes we made. Either manually run this or perhaps yum can be customized to run it automatically.
Proposed Solution (2) Subtle but dicey: create our own custom RPM package which installs the files with changes. Then force this RPM to be installed. Future RPM updates that want to change the files will then halt because of the conflict. This will interrupt the routine yum update and we would follow a manual procedure to preserve/restore the customization.
Alternative solutions, thoughts and critiques are most welcome! Thanks.