These are the companion notes for the youtube video fix this SERIOUS issue in Thunar and XFCE-panel published on the budlabs youtube channel 22.09.19.

If a process is started FROM a Xfce applications, f.i. opening a file from thunar, or starting a program from whisker menu,
if the main xfce application (thunar/xfce4-panel) crashes or is terminated incorrectly. The processes started from them will also
get terminated.

The fix is to configure the Xfce applications as systemd units, that will properly terminate with the --quit option.
To start the service units, use these commands: (in f.i. ~/.xinitrc or ~/.config/i3/config)

systemctl --user start xfce4-panel.service
systemctl --user start thunar-daemon.service

~/.config/systemd/user/xfce4-panel.service:

[Unit]
Description=Xfce bar
PartOf=graphical-session.target

[Service]
Type=dbus
BusName=org.xfce.Panel
ExecStart=xfce4-panel --sm-client-disable --disable-wm-check

KillMode=none
ExecStop=xfce4-panel --quit

Restart=on-failure

~/.config/systemd/user/thunar-daemon.service:

[Unit]
Description=Thunar daemon
PartOf=graphical-session.target

[Service]
Type=dbus
BusName=org.xfce.FileManager
ExecStart=thunar --daemon

KillMode=none
ExecStop=thunar --quit

Restart=on-failure
Edit Report
Pub: 19 Sep 2022 20:33 UTC
Edit: 19 Sep 2022 20:38 UTC
Views: 216