I would like to create a couple of nautilus actions that will only show up if a certain file is in the folder. These are location actions, a simple example of one I would like is a "Make" option that runs
make in the folder, but only shows up if that folder contains a makefile. Is something like this possible?
I have tried playing with basenames but they seem to only work for selected items. I have also looked into the "Execution Environment" option on the "Environment" panel. I could probably do this by using the "Appears if the command outputs 'true'" option, but I can't figure out how to pass the folder path to that command.