<?xml version="1.0" encoding="windows-1252"?>
<node id="278302" title="Re: Re: (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windows" created="2003-07-27 20:50:20" updated="2005-07-19 17:33:26">
<type id="11">
note</type>
<author id="262712">
djbiv</author>
<data>
<field name="doctext">
I run Redhat Linux 8, and currently use the Ximian Desktop.  If you right click on the desktop there is a 'scripts' menu item, and scripts folder.  Here is the description &lt;code&gt;All executable files in this folder will appear in the Scripts menu. Choosing a script from the menu will run that script.

When executed from a local folder, scripts will be passed the selected file names. When executed from a remote folder (e.g. a folder showing web or ftp content), scripts will be passed no parameters.

In all cases, the following environment variables will be set by Nautilus, which the scripts may use:

NAUTILUS_SCRIPT_SELECTED_FILE_PATHS: newline-delimited paths for selected files (only if local)

NAUTILUS_SCRIPT_SELECTED_URIS: newline-delimited URIs for selected files

NAUTILUS_SCRIPT_CURRENT_URI: URI for current location

NAUTILUS_SCRIPT_WINDOW_GEOMETRY: position and size of current window&lt;br&gt;&lt;/code&gt;

You should be able to move any perl scripts to the appropriate folder, (on my system this is "/home/user/.gnome2/nautilus-scripts/"), on your system (if available) for similar results, YMMV.</field>
<field name="root_node">
277596</field>
<field name="parent_node">
278221</field>
</data>
</node>
