Bug 160974

Summary: Hide Open Remote commands from popup menus according to ooO::Commands::Execute::Disabled list
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: frameworkAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: stephane.guillou
Priority: medium    
Version: 24.8.0.0 alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=160961
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 103239    
Attachments: Screenshot of the problem

Description Gabor Kelemen (allotropia) 2024-05-07 12:25:46 UTC
Created attachment 194016 [details]
Screenshot of the problem

This is a followup to bug 160961

In case some enterprise deployment wants to disable certain UNO commands from being active in the menu, toolbar, sidebar or start center, this is possible by using a config extension and list the command in the ooO::Commands::Execute::Disabled config key tree.
This does not work in case of the Open or Recent Documents dropdowns: the button is not hidden, neither does it work.

1. Open a new Writer document, change UI to Tabbed (but also happens in the standard toolbar mode)
2. Install attachment 194000 [details] extension from bug 160961, restart Writer
-> In the File -> Open and File -> Recent Documents dropdowns the Open Remote button is visible, but does not pop up the dialog.

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 6d5d9eaa61505cebaf3bde4bfc157d8e19fec8de
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2024-05-23 04:42:26 UTC
Makes sense to follow what ooO::Commands::Execute::Disabled lists, of course.