<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="ui" id="nautilus-behavior" xml:lang="zh-CN">
<info>
<link type="guide" xref="nautilus-prefs" group="nautilus-behavior"/>
<desc>单击打开文件,运行或查看可执行文本文件,指定回收站行为。</desc>
<revision pkgversion="3.5.92" version="0.2" date="2012-09-19" status="review"/>
<revision pkgversion="3.18" date="2015-09-29" status="candidate"/>
<credit type="author">
<name>Tiffany Antopolski</name>
<email>tiffany@antopolski.com</email>
</credit>
<credit type="author">
<name>Shaun McCance</name>
<email>shaunm@gnome.org</email>
</credit>
<credit type="editor">
<name>Michael Hill</name>
<email>mdhillca@gmail.com</email>
</credit>
<credit type="editor">
<name>Sindhu S</name>
<email>sindhus@live.in</email>
</credit>
<credit type="editor">
<name>David King</name>
<email>amigadave@amigadave.com</email>
</credit>
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>TeliuTe</mal:name>
<mal:email>teliute@163.com</mal:email>
<mal:years>2011, 2012</mal:years>
</mal:credit>
</info>
<title>文件管理器行为首选项</title>
<p>您可以设置单击或双击打开文件,运行或显示可执行文本文件,以及回收站的行为。点击顶部面板上的<gui>文件</gui>,选择<gui>首选项</gui>,再选择<gui>行为</gui>标签。</p>
<section id="behavior">
<title>行为</title>
<terms>
<item>
<title><gui>单击打开项目</gui></title>
<title><gui>双击打开项目</gui></title>
<p>默认情况,双击打开一个文件,您也可以设定单击打开一个文件或文件夹,在使用单击模式时,您可以按住 <key>Ctrl</key> 键点击选中一个或多个文件。</p>
</item>
</terms>
</section>
<section id="executable">
<title>可执行文本文件</title>
<p>An executable text file is a file that contains a program that you can run
(execute). The <link xref="nautilus-file-properties-permissions">file
permissions</link> must also allow for the file to run as a program. The most
common are <sys>Shell</sys>, <sys>Python</sys> and <sys>Perl</sys> scripts.
These have extensions <file>.sh</file>, <file>.py</file> and <file>.pl</file>,
respectively.</p>
<p>When you open an executable text file, you can select from:</p>
<list>
<item>
<p><gui>Run executable text files when they are opened</gui></p>
</item>
<item>
<p><gui>View executable text files when they are opened</gui></p>
</item>
<item>
<p><gui>Ask each time</gui></p>
</item>
</list>
<p>If <gui>Ask each time</gui> is selected, a dialog will pop up asking if you
wish to run or view the selected text file.</p>
<p>Executable text files are also called <em>scripts</em>. All scripts in the
<file>~/.local/share/nautilus/scripts</file> folder will appear in the context
menu for a file under the <gui style="menuitem">Scripts</gui> submenu. When a
script is executed from a local folder, all selected files will be pasted to
the script as parameters. To execute a script on a file:</p>
<steps>
<item>
<p>Navigate to the desired folder.</p>
</item>
<item>
<p>Select the desired file.</p>
</item>
<item>
<p>Right click on the file to open the context menu and select the desired
script to execute from the <gui style="menuitem">Scripts</gui> menu.</p>
</item>
</steps>
<note style="important">
<p>A script will not be passed any parameters when executed from a remote
folder such as a folder showing web or <sys>ftp</sys> content.</p>
</note>
</section>
<section id="trash">
<info>
<link type="seealso" xref="files-delete"/>
<title type="link">文件管理器回收站首选项</title>
</info>
<title>回收站</title>
<terms>
<item>
<title><gui>Ask before emptying the Trash</gui></title>
<p>默认选中此项,当清空回收站时,会显示确认信息,提示您将要清空回收站或删除文件。</p>
</item>
</terms>
</section>
</page>