After porting thunar to gtk3, when in daemon mode (thunar --daemon) a delay of 8 sec. on logout can be observed.
The delay seems to comes from the usage of g_application_hold().
If g_application_release() is executed before logout, the delay disappears.
Possibly this is a bug in gtk3 .. however till now I was not able to reproduce it on a simple application.
For now the bug got fixed by using "g_unix_signal_add" in order to trigger on SIGHUP. The handler than calls g_application_release() .
However that's not a very clean solution, since it works for unix-only ( actually it would be nice to not handle any system-signals at all )
The following investigations could be done:
- slowly minimize thunar and check on each step if the bug disappears, in order to create a minimal setup on which the bug occurs .. so we could clearly name the reason.
- check if we could possibly subscribe to a dbus-signal instead of a system-signal (see discussion on github ) in order to trigger a handler on logout
Here the links to the old github-bug and the pull-request
Alexander Schwinn referenced this bugreport in commit 7db6bf8f42a435afab9dd55f84c5304e74a88377
Followup of fix "8 second delay on logout" (Bug #13726)
Fixed now. Will be released in thunar-1.7.0
You have to specify a comment when changing the Resolution of a bug from (empty) to FIXED.