Hi!
When defining actions that include a menu with submenus, only the final (leaf) menu items are displayed in the context menu. The names of the parent menus themselves do not appear, making it impossible to navigate the menu hierarchy.
Note: This issue does not occur in pcmanfm-qt, where all menu levels (parent and child) are displayed correctly.
Steps to reproduce:
- Create an action that defines a menu with submenus.
- Open the context menu in pcmanfm.
- Observe that only the final submenu items appear, parent menu names are missing.
Expected behavior:
Parent menu names should be displayed, allowing navigation through nested menus (as in pcmanfm-qt).
Environment:
- pcmanfm version: 1.4.0
- OS: Fedora 43
Additional notes:
A good project to test this behavior is:
https://github.com/cfgnunes/fm-scripts
It installs action menus correctly, including nested ones, and works properly in file managers that support hierarchical menus (like pcmanfm-qt).
Screenshot of bug:

Hi!
When defining actions that include a menu with submenus, only the final (leaf) menu items are displayed in the context menu. The names of the parent menus themselves do not appear, making it impossible to navigate the menu hierarchy.
Note: This issue does not occur in pcmanfm-qt, where all menu levels (parent and child) are displayed correctly.
Steps to reproduce:
Expected behavior:
Parent menu names should be displayed, allowing navigation through nested menus (as in pcmanfm-qt).
Environment:
Additional notes:
A good project to test this behavior is:
https://github.com/cfgnunes/fm-scripts
It installs action menus correctly, including nested ones, and works properly in file managers that support hierarchical menus (like pcmanfm-qt).
Screenshot of bug:
