Bug 452559

Summary: Cannot delete Global Menu widget from the dock
Product: [Plasma] plasmashell Reporter: Dmitry <kuteynikov>
Component: Global Menu widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde, mvourlakos
Priority: NOR    
Version First Reported In: 5.24.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dmitry 2022-04-12 20:05:45 UTC
SUMMARY

Global Menu widget cannot be removed. Due to the fact that Latte dock itself and it's settings don't have any global menus, the menu widget becomes invisible when I start editing the dock. To remove the widget I need to click on it, but it's impossible because it's hidden.

STEPS TO REPRODUCE

1. Add Global Menu widget to Latte dock
2. Edit the dock
3. Global Menu becomes hidden and it's impossible to locate it. Thus, it cannot be removed.

OBSERVED RESULT

Outside of the editing mode, right clicking on the Global Menu widget doesn't bring option to remove it.
At the same time, editing Latte Dock doesn't help, because this widget becomes hidden during editing.

EXPECTED RESULT

I need some way to remove the Global Menu widget.

SOFTWARE/OS VERSIONS

Linux: EndeavourOS, X11
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Comment 1 Michail Vourlakos 2022-04-17 09:54:54 UTC
This is problem of Global menu not Latte... You could try to have an application open that provides a menu in order to be able to remove it.
Comment 2 Dmitry 2022-04-19 21:17:10 UTC
(In reply to Michail Vourlakos from comment #1)
> This is problem of Global menu not Latte... You could try to have an
> application open that provides a menu in order to be able to remove it.

This workaround doesn't help. Yes, Konsole, for example, supports Global Menu. When I switch to Konsole, Global Menu becomes visible. Then I right click on it. A context menu appears, but it has no option to remove the widget from the dock. The only option is to "Edit Dock..." but when I choose it, the editor appears which doesn't support Global Menu, so the menu becomes hidden again.
Comment 3 Michail Vourlakos 2022-04-19 21:29:22 UTC
After Edit Dock, choose Rearrange and configure your widgets, it should give you the minimum length at global menu in order to remove it
Comment 4 Dmitry 2022-04-19 21:34:52 UTC
(In reply to Michail Vourlakos from comment #3)
> After Edit Dock, choose Rearrange and configure your widgets, it should give
> you the minimum length at global menu in order to remove it

Thanks, it helped. The solution wasn't obvious, though.
By the way, after removing the Global Menu widget I need to restart Konsole for changes to take effect, otherwise it keeps staying without any menu.
Comment 5 Dmitry 2022-04-20 17:49:17 UTC
In my opinion, it would be great just to have a "Remove" option in the context menu after right-clicking on the widget.
Comment 6 Michail Vourlakos 2022-04-20 18:48:22 UTC
in normal mode that is not acceptable...
https://www.youtube.com/watch?v=FOYkGfksraI