]> git.ipfire.org Git - thirdparty/systemd.git/commit
xdg-autostart-generator: Add a generator for XDG autostart files
authorBenjamin Berg <bberg@redhat.com>
Wed, 25 Mar 2020 15:59:40 +0000 (16:59 +0100)
committerBenjamin Berg <bberg@redhat.com>
Wed, 27 May 2020 07:02:10 +0000 (09:02 +0200)
commit8feca2472ccb71d49716a37e86db2fc3a485ae4e
tree8fbc9062edf1a620a4236523abaa9676e1479453
parent8746820b87020358e10a258a3fa42f8ca1c6a453
xdg-autostart-generator: Add a generator for XDG autostart files

This generator can be used by desktop environments to launch autostart
applications and services. The feature is an opt-in, triggered by
xdg-desktop-autostart.target being activated.

Also included is the new binary xdg-autostart-condition. This binary is
used as an ExecCondition to test the OnlyShowIn and NotShowIn XDG
desktop file keys. These need to be evaluated against the
XDG_CURRENT_DESKTOP environment variable which may not be known at
generation time.

Co-authored-by: Henri Chain <henri.chain@enioka.com>
man/systemd.special.xml
meson.build
meson_options.txt
src/xdg-autostart-generator/xdg-autostart-condition.c [new file with mode: 0644]
src/xdg-autostart-generator/xdg-autostart-generator.c [new file with mode: 0644]
src/xdg-autostart-generator/xdg-autostart-service.c [new file with mode: 0644]
src/xdg-autostart-generator/xdg-autostart-service.h [new file with mode: 0644]
units/user/meson.build
units/user/xdg-desktop-autostart.target [new file with mode: 0644]