Bug 376728 - Global Menu does not reappear for windows on session restore because appmenu kded module isn't loaded yet by the time the app launches
Summary: Global Menu does not reappear for windows on session restore because appmenu ...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Menu (show other bugs)
Version: 5.9.2
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 397638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-02-20 18:27 UTC by i9i7
Modified: 2023-06-16 03:45 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
lack of menu (39.19 KB, image/png)
2017-02-21 02:43 UTC, i9i7
Details
xprop log (54.62 KB, text/plain)
2017-02-21 02:46 UTC, i9i7
Details

Note You need to log in before you can comment on or make changes to this bug.
Description i9i7 2017-02-20 18:27:55 UTC
If I enable the global menu and open a new instance of (for instance) Dolphin, the global menu will work. However, if I log out and log back in (restoring previous session), the instance of Dolphin loads up, but the menu is completely gone. That is, the menu is now neither in the Dolphin window nor in the plasma panel. This is consistent across KDE programs.
Comment 1 Kai Uwe Broulik 2017-02-20 22:17:19 UTC
The menu in Dolphin is completely gone then? Global menu also does not appear when you focus another window and focus back into Dolphin?

Can you provide the output of xprop (launch xprop from console and click the Dolphin window) when you have this problem, the output should have something like _KDE_NET_WM_APPMENU_OBJECT_PATH and _KDE_NET_WM_APPMENU_SERVICE_NAME. If that's missing, it might give a clue what's going on.
Comment 2 i9i7 2017-02-21 02:43:39 UTC
Created attachment 104138 [details]
lack of menu
Comment 3 i9i7 2017-02-21 02:46:52 UTC
Created attachment 104139 [details]
xprop log
Comment 4 i9i7 2017-02-21 02:47:37 UTC
>The menu in Dolphin is completely gone then? Global menu also does not appear when you focus another window and focus back into Dolphin?
Yes, it looks like the screenshot I attached.

>Can you provide the output of xprop (launch xprop from console and click the Dolphin window) when you have this problem, the output should have something like _KDE_NET_WM_APPMENU_OBJECT_PATH and _KDE_NET_WM_APPMENU_SERVICE_NAME. If that's missing, it might give a clue what's going on.
OK, I attached a log of the output.
Comment 5 Kai Uwe Broulik 2017-03-06 09:51:25 UTC
Thanks. Seems the app starts quite soon on startup at a point where the appmenu kded module isn't loaded yet and as such there's no dbus menu service running and the app won't export its menu.
Comment 6 Marco Martin 2017-03-06 16:22:18 UTC
(In reply to Kai Uwe Broulik from comment #5)
> Thanks. Seems the app starts quite soon on startup at a point where the
> appmenu kded module isn't loaded yet and as such there's no dbus menu
> service running and the app won't export its menu.

shouldn't watch for the service to appear as well?
Comment 7 Kai Uwe Broulik 2017-03-06 16:32:06 UTC
> shouldn't watch for the service to appear as well?

From what I can tell Qt's platform menu stuff doesn't support changing at runtime. If you create a QMenuBar it will look for a service and then export a menu and hide the in-window one and that's it.
Comment 8 Alexander Mentyu 2018-01-28 14:24:31 UTC
I noticed that sometimes after session restore - global menu widget is displaying menu for one instance of two, sometimes for none and sometimes for both instances of same launched app in:

Plasma: 5.11.5
Apps: 17.12.1
Qt: 5.10.0
Frameworks: 5.42.0
Kernel: 4.14.14-1-MANJARO

tried with Konsole, Dolphin and Kate
Comment 9 avlas 2018-08-19 18:39:55 UTC
> (In reply to Kai Uwe Broulik from comment #5)
> Thanks. Seems the app starts quite soon on startup at a point where the
> appmenu kded module isn't loaded yet and as such there's no dbus menu
> service running and the app won't export its menu.

Suffering the same issue. Couldn't this be fixed in ksmserver instead? Please see https://bugs.kde.org/show_bug.cgi?id=397638
Comment 10 Nate Graham 2023-05-17 15:37:04 UTC
*** Bug 397638 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2023-05-17 15:38:18 UTC
Is this still an issue with the systemd boot process in recent Plasma versions?
Comment 12 Vladimir Yerilov 2023-05-17 16:45:19 UTC
(In reply to Nate Graham from comment #11)
> Is this still an issue with the systemd boot process in recent Plasma
> versions?

Haven't seen this issue for quite a long time. I use systemdBoot=true setting in startkderc file. Maybe I'm just a lucky one, need more confirmations.
Comment 13 Bug Janitor Service 2023-06-01 03:45:21 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 14 Bug Janitor Service 2023-06-16 03:45:21 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!