Comment 4 for bug 618483

Mathias Brodala (mathbr) wrote :

Starting with r4153 our handler for the "delete-event" signal of the main window is run in the 4th emission stage. This means that you can now simply .connect() to that signal and prevent our handler from running completely by returning True. However, you need to take care of hiding the window yourself then.

TLDR: You may now achieve the desired behavior.

As for hiding the regular tray icon: the user can simply deactivate the corresponding option in the preferences. There might even be other tray icon implementations you are not aware of, so don’t bother with this.