Bug 394432

Summary: Hide window on startup option doesn't work
Product: [Applications] konversation Reporter: Abhishek Batra <abhshk.btra>
Component: generalAssignee: Konversation Developers <konversation-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kossebau
Priority: NOR    
Version First Reported In: 1.7.4   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Abhishek Batra 2018-05-19 04:47:40 UTC
Despite checking the "Hide window on startup" option in Configure->Behavior->General behavior, Konversation window is displayed whenever I log in.
Comment 1 Christoph Feck 2018-06-06 22:29:29 UTC
Is Konversation auto-started via session restore, or do you have it enabled in autostart folder?
Comment 2 Abhishek Batra 2018-06-07 02:09:13 UTC
It is enabled in autostart.
Comment 3 Friedrich W. H. Kossebau 2022-01-01 01:21:05 UTC
I suspect that next to Konversation having been added to autostart, it was also covered by session management. And as both are sadly not integrated, this resulted in Konversation being started 2x, once by session restore as well as autostart later on. And any second start is always interpreted as activation, which is handled by ensuring the window is shown.

Next to that, session management support in Konversation had a bug in not remembering the window state properly. This was fixed for upcoming 1.8.21121. So plain session management should now ensure that if the Konversation window was hidden on session end, it will also be restored as hidden on session restore on the next login now.

Without session management, when registering Konversation for Autostart, at least with current 1.8.21120 it respects the flag and starts hidden.

So closing as UPSTREAM issue, as this is an design flaw in the desktop environments when it comes to missing integration of autostart and session management. Current behaviour is the same as also seen with other single instance applications like KMail. So use autostart only if session management is disabled.