]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
xdg-autostart-generator: ignore DBusActivatable=true 18695/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Feb 2021 08:50:09 +0000 (09:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Feb 2021 08:54:46 +0000 (09:54 +0100)
See https://wiki.gnome.org/HowDoI/DBusApplicationLaunching and
https://wiki.gnome.org/Initiatives/GnomeGoals/DBusActivatable for a description
of this key:
> Instead of the typical UNIX-style fork()/exec() approach to process creation,
> launching an application is done by sending a D-Bus message to the well-known
> name of that application, causing a D-Bus activation.
>
> Starting processes with D-Bus activation ensures that each application gets
> started in its own pristine environment, as a direct descendent of the
> session -- not in the environment of whatever its parent happened to be. This
> is important for ensuring the app ends up in the correct cgroup, for example.

So this motivation is not important for us: we launch stuff ourselves better.

This fixes warnings during boot:
systemd-xdg-autostart-generator[2274]: /etc/xdg/autostart/org.freedesktop.problems.applet.desktop:92: Unknown key name 'DBusActivatable' in section 'Desktop Entry', ignoring.

src/xdg-autostart-generator/xdg-autostart-service.c

index ffc09fa931ed0bfe73aa64e547602ffde1a316c2..1528432f43329fa9edeeb59bb1f089e531ba609b 100644 (file)
@@ -336,6 +336,7 @@ XdgAutostartService *xdg_autostart_service_parse_desktop(const char *path) {
                 /* Common entries that we do not use currently. */
                 { "Desktop Entry", "Categories",                NULL, 0, NULL},
                 { "Desktop Entry", "Comment",                   NULL, 0, NULL},
+                { "Desktop Entry", "DBusActivatable",           NULL, 0, NULL},
                 { "Desktop Entry", "Encoding",                  NULL, 0, NULL},
                 { "Desktop Entry", "GenericName",               NULL, 0, NULL},
                 { "Desktop Entry", "Icon",                      NULL, 0, NULL},