Summary: | Global Menu does not reappear for windows on session restore because appmenu kded module isn't loaded yet by the time the app launches | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | i9i7 <i9i7soft> |
Component: | Global Menu | Assignee: | Kai Uwe Broulik <kde> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | jsardid, nate, notmart, notuxius, openmindead, plasma-bugs |
Priority: | NOR | ||
Version: | 5.9.2 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
lack of menu
xprop log |
Description
i9i7
2017-02-20 18:27:55 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. Created attachment 104138 [details]
lack of menu
Created attachment 104139 [details]
xprop log
>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. 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. (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? > 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.
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 > (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 *** Bug 397638 has been marked as a duplicate of this bug. *** Is this still an issue with the systemd boot process in recent Plasma versions? (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. 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! 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! |