How to add entries in the right-click menu of a file manager?

Solution 1:

Options besides nautilus scripts that once existed are listed here. Currently, as of Ubuntu 21.10 and Nautilus 40.2, your options are limited to nautilus scripts and python3-nautilus.

Python nautilus extensions are most "integrated". To create your own extensions, some Python skills are required.