https://bugs.kde.org/show_bug.cgi?id=341930
--- Comment #77 from Leslie Zhai <xiangzha...@gmail.com> --- Hi Thomas, Thanks for your reply ;-) 1. Qt5 v5.5.1 has integrated the patch for QTBUG-46310 to fix xcb: set SM_CLIENT_ID property issue, and I have applied the patch for QTBUG-45484 to fix Fix QWidget::setWindowRole issue. 2. As Andreas suggested, I patched the kxmlgui to Remove QCoreApplication::setQuitLockEnabled(true) from KMainWindowPrivate::init() But ksmserver still failed to restore the applications (based on Qt5) session nor even chromium! and Gtk based applications, such as pidgin, thunderbird, are ok. > there're considerations to work around *parts* of that in ksmserver After discussed with Andreas, he pointed out my fault - I wrongly argued that it might be libSM's issue. so I parsed the files under $HOME/.config/session/, filter the window manager - kwin, then call startApplication() after parsing [Session: saved at previous logout] configuration to restart application. in plasma-workspace/ksmserver/startup.cpp, line 393, based on plasma-workspace v5.4.3 tag As you said it is just a workaround or monkey patch, for example, kwrite could not open previous documents when restore the session. But thanks for your help again ;-) Regards, Leslie Zhai -- You are receiving this mail because: You are watching all bug changes.