Bug 403188 - At login, previous session restores before some other services
Summary: At login, previous session restores before some other services
Status: RESOLVED DUPLICATE of bug 384392
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: 5.14.5
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-13 18:23 UTC by sammel49
Modified: 2019-07-23 21:17 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sammel49 2019-01-13 18:23:31 UTC
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/
Comment 1 Matija Šuklje 2019-01-14 07:32:09 UTC
Can confirm on NixOS:

- Plasma 5.13
- Plasma Frameworks 5.49
- KDE Applications 18.08
Comment 2 David Edmundson 2019-01-14 10:18:30 UTC
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.
Comment 3 trmdi 2019-01-14 17:06:24 UTC
(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 ?
Comment 4 sammel49 2019-01-14 17:30:40 UTC
(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.
Comment 5 Bug Janitor Service 2019-01-29 04:33:08 UTC
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!
Comment 6 sammel49 2019-01-29 15:22:04 UTC
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 ***