SUMMARY If KDE is set up to restore previous session on login, then when login happens, the previous session is being restored before all other services are ready. For example, when also using Plasma Global Application Menu (http://fasterland.net/activate-global-menu-kde-plasma-5-9.html), applications from the previous session are started before the menu service is ready. At least, Kai Uwe, developer behind recent updates of Global Application Menu, made this guess - https://blog.broulik.de/2018/03/gtk-global-menu/#comment-10163. And there is actually a report on this already - https://bugs.kde.org/show_bug.cgi?id=384392. However, as other people mention (https://www.reddit.com/r/kde/comments/aes1vn/delay_kde_desktop_session_restore/eds444h/) it also happens with things other than menu. So the issue might be on the side of ksmserver. STEPS TO REPRODUCE 1. Enable restoring previous session on login 2. Add Application Menu to Window decorations 3. Open Dolphin, see the Application Menu element in its titlebar 4. Relogin OBSERVED RESULT Restored Dolphin (and other restored applications) does not have the Application Menu EXPECTED RESULT All restored applications should have Application Menus in their titlebars, just like when they are started manually. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 4.15.0-43-generic KDE Plasma Version: 5.14.5 KDE Frameworks Version: 5.54.0 Qt Version: 5.11.2 ADDITIONAL INFORMATION Additional discussions at https://bugs.kde.org/show_bug.cgi?id=384392 https://blog.broulik.de/2018/03/gtk-global-menu/#comment-10140 https://www.reddit.com/r/kde/comments/aes1vn/delay_kde_desktop_session_restore/
Can confirm on NixOS: - Plasma 5.13 - Plasma Frameworks 5.49 - KDE Applications 18.08
As you've mentioned there's a bug report for the menu - which I understand is a problem. You didn't mention anything else specifically in here.
(In reply to sammel49 from comment #0) it also happens with things > other than menu. So the issue might be on the side of ksmserver. You mean this bug relates to https://bugs.kde.org/show_bug.cgi?id=362857 ?
(In reply to trmdi from comment #3) > (In reply to sammel49 from comment #0) > > it also happens with things other than menu. So the issue might be on the side of ksmserver. > > You mean this bug relates to https://bugs.kde.org/show_bug.cgi?id=362857 ? I can't say for sure, but by the look of it, I think it does.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
The race condition between session restore and Application Menu service initialization is fixed in https://bugs.kde.org/show_bug.cgi?id=384392 (after this issue had been created). The race condition between session restore and the "window effects service" (probably KWin) initialization is tracked in https://bugs.kde.org/show_bug.cgi?id=362857. Maybe this one could be fixed with an equally tiny change as with the app menu. As no other races with session restore are provided, the current issue is being marked as a duplicate. *** This bug has been marked as a duplicate of bug 384392 ***