1<page xmlns="http://projectmallard.org/1.0/"
2      type="topic" style="ui"
3      id="nautilus-behavior">
4
5  <info>
6    <link type="guide" xref="nautilus-prefs" group="nautilus-behavior"/>
7
8    <desc>Single-click to open files, run or view executable
9    text files, and specify trash behavior.</desc>
10
11    <revision pkgversion="3.5.92" version="0.2" date="2012-09-19" status="review"/>
12    <revision pkgversion="3.18" date="2015-09-29" status="candidate"/>
13    <revision pkgversion="3.33.3" date="2019-07-19" status="candidate"/>
14
15    <credit type="author">
16      <name>Tiffany Antopolski</name>
17      <email>tiffany@antopolski.com</email>
18    </credit>
19    <credit type="author">
20      <name>Shaun McCance</name>
21      <email>shaunm@gnome.org</email>
22    </credit>
23    <credit type="editor">
24      <name>Michael Hill</name>
25      <email>mdhillca@gmail.com</email>
26    </credit>
27    <credit type="editor">
28      <name>Sindhu S</name>
29      <email>sindhus@live.in</email>
30    </credit>
31    <credit type="editor">
32      <name>David King</name>
33      <email>amigadave@amigadave.com</email>
34    </credit>
35    <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
36  </info>
37
38<title>File manager behavior preferences</title>
39<p>You can control whether you single-click or double-click files, how
40executable text files are handled, and the trash behavior. Click the menu
41button in the top-right corner of the window, select <gui>Preferences</gui>,
42then go to the <gui>General</gui> section.</p>
43
44<section id="behavior">
45<title>Behavior</title>
46<terms>
47 <item>
48  <title><gui>Action to Open Items</gui></title>
49  <p>By default, clicking selects files and double-clicking opens them.
50  You can instead choose to have files and folders open when you click on
51  them once. When you use single-click mode, you can hold down the
52  <key>Ctrl</key> key while clicking to select one or more files.</p>
53 </item>
54</terms>
55
56</section>
57<section id="executable">
58<title>Executable text files</title>
59 <p>An executable text file is a file that contains a program that you can run
60 (execute). The <link xref="nautilus-file-properties-permissions">file
61 permissions</link> must also allow for the file to run as a program. The most
62 common are <sys>Shell</sys>, <sys>Python</sys> and <sys>Perl</sys> scripts.
63 These have extensions <file>.sh</file>, <file>.py</file> and <file>.pl</file>,
64 respectively.</p>
65
66  <comment>
67  <cite date="2015-09-29">amigadave</cite>
68  <p>This "section" should be split out to a separate page. It is not related
69  to the preferences nor behaviour settings of Nautilus, although it could be a
70  a seealso link from this page.</p>
71  </comment>
72
73 <p>Executable text files are also called <em>scripts</em>. All scripts in the
74 <file>~/.local/share/nautilus/scripts</file> folder will appear in the context
75 menu for a file under the <gui style="menuitem">Scripts</gui> submenu. When a
76 script is executed from a local folder, all selected files will be pasted to
77 the script as parameters. To execute a script on a file:</p>
78
79<steps>
80  <item>
81    <p>Navigate to the desired folder.</p>
82  </item>
83  <item>
84    <p>Select the desired file.</p>
85  </item>
86  <item>
87    <p>Right click on the file to open the context menu and select the desired
88    script to execute from the <gui style="menuitem">Scripts</gui> menu.</p>
89  </item>
90</steps>
91
92 <note style="important">
93  <p>A script will not be passed any parameters when executed from a remote
94  folder such as a folder showing web or <sys>ftp</sys> content.</p>
95 </note>
96
97</section>
98
99</page>
100