Pass filename from Nautilus to shell script
问题 I am trying to execute a shell script that gets for an argument a file name. I can do it if I go to the terminal and type the full PATH. But I am trying to make this more user friendly so I what I want to do is to send the argument (complete path) from the file manager or nautilus. Is it possible? 回答1: It is possible. Here's a way to do it: Copy your script to the folder ~/.local/share/nautilus/scripts/ -- please note that this path will expand to include the current user information, such as