Log Out / Shutdown does not properly terminate running applications.
To reproduce:
- Use some application that needs to remember state, like keepassxc.
- pkill keepassxc (SIGTERM), start keepassxc -> last database is remembered, as it should.
- Log out or shut down your computer from xfce: Now there are indeterminate degrees of corruption in desktop applications, for example while on my work laptop keepassxc manages to save its state on the much faster desktop computer it always forgets.
Solution / what I think may be the problem: Send SIGTERM to running applications that were started from the desktop and then WAIT until they have properly terminated.