NAUTILUS_SCRIPT_WINDOW_GEOMETRY: position and size of current window NAUTILUS_SCRIPT_CURRENT_URI: URI for current location NAUTILUS_SCRIPT_SELECTED_URIS: newline-delimited URIs for selected files NAUTILUS_SCRIPT_SELECTED_FILE_PATHS: newline-delimited paths for selected files (only if local) In all cases, the following environment variables will be set by Nautilus, which the scripts may use: a folder showing web or ftp content), scripts will be passed no parameters. When executed from a local folder, scripts will be passed the selected file names. The long answer is taken from the "About Scripts" dialog: The quick answer to your question is "Yes". In fact, I'm going to make a couple right now and do how tos if they work well. Any more? I bet a lot of useful scripts can be made. I didn't realize how useful this was until I tried it and now I can't live without it!ĭo you know if there is a manual to see what variables are available? For instance, there is $NAUTILUS_SCRIPT_CURRENT_URI and $NAUTILUS_SCRIPT_SELECTED_URIS. Hope somebody besides me finds this useful - the lack of this option has driven me batty since my foray into linux. You can now highlight a folder and perform the operation to open a terminal at the location highlighted. In any nautilus window, you can right click, and from the scripts sub-context-menu, click on Open Terminal Here to open a terminal at the currently viewed directory. # This script either opens in the current directory,īase="`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d'/' -f3- | sed 's/%20/ /g'`" # Modified to work with spaces in path by Christophe Combelles HOWTO: Quickly Open a Terminal From Nautilus (For any local location - won`t work with ftp or other esoteric locations).īig thanks to the guys in the Drag and Drop To Run As Root HOWTO thread () for showing me how this could be achieved. This has probably been covered before, but I couldn`t see it anywhere.Īnyway, this is a quick method of dropping to a terminal from nautilus, which automatically changes directory to wherever you were browsing with nautilus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |