Bug 494695 - KCalc displays no menu bar if Application Menus Daemon is running
Summary: KCalc displays no menu bar if Application Menus Daemon is running
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Menu widget (other bugs)
Version First Reported In: 6.2.0
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-13 20:05 UTC by kdebug
Modified: 2025-04-08 20:07 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdebug 2024-10-13 20:05:52 UTC
SUMMARY


STEPS TO REPRODUCE
1. Run KCalc
2. 
3. 

OBSERVED RESULT
KCalc opens in Simple mode with no way to change to Science or other modes.

EXPECTED RESULT
KCalc should have a menu bar: File, Edit, Constants, Settings, Help. Failing that, the menu invoked via "Ctrl+Shift+," should enable mode changing.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3

ADDITIONAL INFORMATION
Following the advice of an old reddit thread*, I went into Background Services and disabled Application menus daemon. I logged out and back in and the menu appeared. If I re-enable the daemon and re-log, the menu vanishes again.

I have no idea what this daemon does or what other effects disabling it will have, if any. But the Background Services menu says to submit a bug if I'm disabling something to work around an issue, so...

* https://www.reddit.com/r/kde/comments/k7s46w/kcalc_question/
Comment 1 Nate Graham 2024-11-25 21:32:06 UTC
The daemon exports apps' menus to a Global Menu widget. Presumably you must have had one such widget at some point in the past, or still do invisibly, due to some bug.

What does `grep global ~/.config/plasma-org.kde.plasma.desktop-appletsrc` say?
Comment 2 Bug Janitor Service 2024-12-10 03:46:32 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 kdebug 2024-12-14 14:53:17 UTC
(In reply to Nate Graham from comment #1)
> The daemon exports apps' menus to a Global Menu widget. Presumably you must
> have had one such widget at some point in the past, or still do invisibly,
> due to some bug.
> 
> What does `grep global ~/.config/plasma-org.kde.plasma.desktop-appletsrc`
> say?

global=Alt+F1
Comment 4 TraceyC 2025-04-04 20:53:21 UTC
moving to the Global Menu widget
Comment 5 Nate Graham 2025-04-08 16:33:39 UTC
So as written, this behavior is intentional because the Global Menu daemon provides global menu exporting functionality. And when that functionality is present, in-window menu bars disappear, intentionally.

However the daemon is only supposed to be running when there is a Global Menu widget present somewhere. Are you saying that you don't have any?
Comment 6 kdebug 2025-04-08 16:55:47 UTC
(In reply to Nate Graham from comment #5)
> So as written, this behavior is intentional because the Global Menu daemon
> provides global menu exporting functionality. And when that functionality is
> present, in-window menu bars disappear, intentionally.
> 
> However the daemon is only supposed to be running when there is a Global
> Menu widget present somewhere. Are you saying that you don't have any?

Had to do a web search to find out what a Global Menu widget is. Seems like it could be handy, but no I've never had any AFAIK.
Comment 7 Nate Graham 2025-04-08 17:00:18 UTC
Thanks.

Ok, so with Plasma 6.3.3 or later, does the issue still happen if you re-enable the Application Menus daemon?

If not, let's close this as fixed. If it does still happen, can you paste the output of `qdbus-qt6 org.kde.kded6 /kded org.kde.kded6.loadedModules | grep appmenu` run in a terminal window? (if it says "command not found", you may need to replace "qdbus-qt6" with "qdbus")

And then can you also paste the output of `grep appmenu ~/.config/plasma-org.kde.plasma.desktop-appletsrc` ?

Thanks again!
Comment 8 kdebug 2025-04-08 18:20:38 UTC
(In reply to Nate Graham from comment #7)
> Thanks.
> 
> Ok, so with Plasma 6.3.3 or later, does the issue still happen if you
> re-enable the Application Menus daemon?
> 
> If not, let's close this as fixed. If it does still happen, can you paste
> the output of `qdbus-qt6 org.kde.kded6 /kded org.kde.kded6.loadedModules |
> grep appmenu` run in a terminal window? (if it says "command not found", you
> may need to replace "qdbus-qt6" with "qdbus")
> 
> And then can you also paste the output of `grep appmenu
> ~/.config/plasma-org.kde.plasma.desktop-appletsrc` ?
> 
> Thanks again!

Re-enabling the service was more difficult - Background Services are hidden from System Settings now! I got to them via `kcmshell6 kcm_kded` and turned the service back on. Verified kcalc was in simple mode and restarted. Kcalc now has its menu. So, looks like this is fixed!
Comment 9 Nate Graham 2025-04-08 20:07:48 UTC
Terrific! Thanks for checking.