Allow menu items of thunarx extensions in the location toolbar

Custom actions can be added to the location toolbar (View > Configure Toolbar), but menu items of other thunarx menu providers cannot. thunar_window_location_toolbar_add_ucas() asks every menu provider for its folder menu items of the home folder, but _thunar_window_location_toolbar_add_ucas_menu_items() keeps only the items whose name starts with uca-action.

An extension could fake that prefix to get in, but that is a hack. thunar-disk-usage-plugin did it for its "Show Disk Usage" item and has dropped it after a request from a maintainer on Matrix.

Proposal: offer the folder menu items of all menu providers in the toolbar editor, not only the custom actions. An extension could opt in, e.g. with a property on ThunarxMenuItem, so that existing extensions do not suddenly show up in the editor. A toolbar button would activate the item of the current folder, the same way a custom action button does now.

Open questions:

  • Opt-in property, or offer every folder menu item?
  • The items are currently queried for the home folder only, when the toolbar is built. Should an extension item be queried for the current folder, so that it can be insensitive or hidden where it does not apply (e.g. remote folders)?

I would be happy to work on a MR for this.

I used Claude Code to read the Thunar code and to write this issue.