Help with Thunar's open with menu

I'm running Zorin OS 15.3 (I think) Education Lite. The file manager is Thunar. I wrote a very simple script to more simply install deb files. It works in the terminal when I pass the file's name/path to it directly, but I want to be able to do it from the file manager. In other words, I want to use the "Use a custom command" option in the "Open With Other Application..." menu to run my script with the file's name as the argument.

Any ideas as to how to do this?

i have tried to add custom action, when i wanted to add open as a root to the menu, i did that after looking to that page:

I haven't tried what u want to do, but I think that page may help u:

1 Like