[Xfce-bugs] [Bug 14277] Killing thunar as well kills all processes started via .desktop files

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Thu Mar 15 13:10:00 CET 2018


https://bugzilla.xfce.org/show_bug.cgi?id=14277

Simon McVittie <simon.mcvittie at collabora.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.mcvittie at collabora.co
                   |                            |.uk

--- Comment #1 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
Please could you describe the steps to reproduce this a bit more clearly? That
would help to confirm or deny what I think is happening.

I conjecture that this is caused by unrelated apps that are launched by Thunar
being direct child processes of Thunar (launched via Exec= rather than via
DBusActivatable). When the main process exits, `systemd --user` decides that
the rest of the cgroup should be cleaned up, and terminates its child
processes; but because those child processes are unrelated apps, that's more
destructive than it ought to be.

You could test this theory by launching an app that does have
DBusActivatable=true in its desktop file (in Debian these include Evince, GNOME
Builder, devhelp and gedit) and an app that is not DBusActivatable (such as
gvim); then killing Thunar. If my theory is correct, the DBusActivatable app
will not be killed, but the non-DBusActivatable app will be killed.

If my theory is correct, then adding KillMode=process to the systemd service
file's [Service] group (similar to what gnome-terminal-server does) would avoid
this.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list