summaryrefslogtreecommitdiffstats
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-27 18:41:01 +0200
committerGitHub <noreply@github.com>2020-05-27 18:41:01 +0200
commit6bce17455e880404984761bfe064ed8ee1dce303 (patch)
tree1904a050c5921db33e8c7e20aa16df841c6b739c /units
parentman: fix conditional in homed.conf.xml (diff)
parentfuzz: Add an XDG desktop file fuzzer (diff)
downloadsystemd-6bce17455e880404984761bfe064ed8ee1dce303.tar.xz
systemd-6bce17455e880404984761bfe064ed8ee1dce303.zip
Merge pull request #15226 from benzea/benzea/xdg-autostart-generator
xdg-autostart-generator: a generator for XDG autostart files
Diffstat (limited to 'units')
-rw-r--r--units/user/meson.build4
-rw-r--r--units/user/xdg-desktop-autostart.target14
2 files changed, 18 insertions, 0 deletions
diff --git a/units/user/meson.build b/units/user/meson.build
index cb8f630b8c..33732e7d59 100644
--- a/units/user/meson.build
+++ b/units/user/meson.build
@@ -20,6 +20,10 @@ units = [
'timers.target',
]
+if conf.get('ENABLE_XDG_AUTOSTART') == 1
+ units += [ 'xdg-desktop-autostart.target', ]
+endif
+
foreach file : units
install_data(file,
install_dir : userunitdir)
diff --git a/units/user/xdg-desktop-autostart.target b/units/user/xdg-desktop-autostart.target
new file mode 100644
index 0000000000..22df5a35d3
--- /dev/null
+++ b/units/user/xdg-desktop-autostart.target
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Startup of XDG autostart applications
+Documentation=man:systemd.special(7)
+RefuseManualStart=yes
+StopWhenUnneeded=yes