core-agent-linux/autostart-dropins
Marek Marczykowski-Górecki 3d06ce1ee9
Implement dropins for /etc/xdg/autostart (#1151)
Usage of _static_ files (dropins) to override some of autostart entries
(enable/disable them in appropriate VM types) is much simpler and less
error prone than automatic generators.

Handling code is implemented in qubes-session-autostart, which is called
from qubes-session.

qubesos/qubes-issues#1151
2015-08-27 22:08:00 +02:00
..
deja-dup-monitor.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gcm-apply.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-keyring-gpg.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-keyring-pkcs11.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-keyring-secrets.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-keyring-ssh.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-power-manager.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-screensaver.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-settings-daemon.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gnome-sound-applet.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gpk-update-icon.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
gsettings-data-convert.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
imsettings-start.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
krb5-auth-dialog.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
Makefile Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
nm-applet.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
notify-osd.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
orca-autostart.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
pulseaudio.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
README.txt Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
restorecond.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
sealertauto.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00
user-dirs-update-gtk.desktop Implement dropins for /etc/xdg/autostart (#1151) 2015-08-27 22:08:00 +02:00

This directory (/etc/qubes/autostart) is used to override parts of files in
/etc/xdg/autostart. For each desktop file there, you can create directory named
after the file plus ".d", then place files there. All such files will be read
(in lexicographical order) and lines specified there will override respective
entries in the original file. This can be used for example to enable or disable
specific application in particular VM type.

For example, you can extend `/etc/xdg/autostart/gnome-keyring-ssh.desktop` by
creating `/etc/qubes/autostart/gnome-keyring-ssh.desktop.d/50_user.conf` with:
```
[Desktop Entry]
OnlyShowIn=X-AppVM;
```

This would mean that `OnlyShowIn` key would be read as `X-AppVM;`, regardless
of original entry in `/etc/xdg/autostart/gnome-keyring-ssh.desktop`.

This mechanism overrides only content of /etc/xdg/autostart, files placed in
~/.config/autostart are unaffected, so can be used to override settings per-VM
basis.