1 <sect2 id="getting-started-starting">
2 <title>Starting &appname;</title>
4 You can start &appname; in the following ways:
8 <term><guimenu>System</guimenu> menu</term>
13 <guisubmenu>Preferences</guisubmenu>
14 <guisubmenu>Look and Feel</guisubmenu>
15 <guimenuitem>Nautilus-Actions Configuration Tool</guimenuitem>
21 <term>Command line</term>
24 To start &appname; from a command line, type the following command:
27 <command><filename>nautilus-actions-config-tool</filename></command>
30 <!-- i18n: "Return" is a key name -->
31 then press <keycap>Return</keycap>.
35 To view available command line options, type:
39 <filename>nautilus-actions-config-tool</filename>
40 <option>--help-all</option>
44 <!-- i18n: "Return" is a key name -->
45 then press <keycap>Return</keycap>.
53 <sect2 id="getting-started-first-run">
54 <title>The first run</title>
56 When you start &appname;, the following window is displayed.
58 <figure id="nact-FIG-main-empty">
59 <title>&appname; Start Up Window</title>
63 <imagedata fileref="figures/nact-main-empty.png" format="PNG"/>
67 Shows &appname; main window.
68 Contains menubar, toolbar, display area,
69 an empty items list in the left, several disabled
70 properties tabs, and statusbar.
74 <para>The empty &appname; main window</para>
80 <!-- Include any descriptions of the GUI immediately after the screenshot
81 of the main UI, for example, the items on the menubar and on the toolbar.
82 This section is optional. -->
85 The &appname; main window contains the following elements:
92 The menus on the menubar contain all of the commands
93 you need to use in &appname;.
96 Shortcuts are available for some commands:
102 <keycap>Ctrl</keycap>
115 <keycap>Ctrl</keycap>
121 Save modified actions and menus.
128 <keycap>Ctrl</keycap>
134 Quit the application.
141 <keycap>Ctrl</keycap>
147 Cut the current selection, keeping it in the clipboard.
154 <keycap>Ctrl</keycap>
160 Copy the current selection to the clipboard.
167 <keycap>Ctrl</keycap>
173 Insert the content of the clipboard before the current item.
180 <keycap>Shift</keycap>
181 <keycap>Ctrl</keycap>
187 Insert the content of the clipboard as subitem(s) of the current item.
194 <keycap>Delete</keycap>
199 Delete the current selection.
211 Reload the actions and menus.
231 <term>Toolbar.</term>
234 Several toolbars may be displayed below the menubar,
235 depending of your choices in the
237 <guimenu>View</guimenu>
238 <guimenuitem>Toolbars</guimenuitem>
239 </menuchoice> submenu.
244 <term>Items list.</term>
247 The list on the left of the main window contains all items,
248 whether they are actions or menus, currently available for
249 edition in &appname;.
252 Items may be sorted in ascending or descending alphabetical
253 order, or not sorted at all, being directly organized and
257 Invalid items are displayed in red color.
260 Modified items are displayed in italic characters.
265 <term>Sort buttons</term>
268 Three buttons allow you to toggle between sort modes.
273 <term>Properties tabs.</term>
276 The right part of the main window displays all is needed
277 to define how, when and where actions and menus should be
287 Define in which &nautilus; menus the item should
288 appear, and how it will be displayed.
298 Specify which command to execute, and which parameters
309 Specify how the command should be executed.
319 Define the basename filters the &nautilus; selection
320 must satisfy in order the action or menu be candidate
331 Define the mimetype filters the &nautilus; selection
332 must satisfy in order the action or menu be candidate
343 Define the folder filters the &nautilus; selection
344 must satisfy in order the action or menu be candidate
355 Define the scheme filters the &nautilus; selection
356 must satisfy in order the action or menu be candidate
367 Define the capability filters the &nautilus; selection
368 must satisfy in order the action or menu be candidate
379 Define some environment conditions the &nautilus;
380 selection must satisfy in order the action or menu
381 be candidate for display.
391 Display item properties.
399 <term>Statusbar.</term>
402 The statusbar displays some status informations about the
403 currently selected row in the items list.
406 When no relevant information is to be displayed, the
407 statusbar displays the count of loaded menus, actions
411 <!-- i18n: "read-only" may be translated -->
412 The «sp;read-only&spraquo; icon
413 <inlinegraphic fileref="figures/read-only.png" />
415 the right of the statusbar when appropriate.
422 <sect2 id="getting-started-first-action">
423 <title>Creating your first action</title>
425 In this example, we are going to create an action which displays
426 some pretty informations about the current selection.
429 <title>Checking for prerequisites</title>
431 This action will require &zenity;.
435 &zenity; is a program which will allow you to create a graphical
436 user interface from a command-line.
439 You should check that this program
440 is installed on your system, by example by typing the following
441 command in a terminal:
445 <filename>zenity</filename>
449 then press <keycap>Return</keycap>.
452 <title>Creating the action</title>
454 To create a new action, choose
458 <keycap>Ctrl</keycap>
462 <guimenu>File</guimenu>
463 <guisubmenu>New action</guisubmenu>
468 A new action is inserted in the items list,
469 and its properties are displayed in the tabs on the right pane.
472 The label of the currently edited action (this one) is added
473 to the application name in the title bar.
475 <figure id="nact-FIG-tab-action">
476 <title>Default properties of a new action</title>
480 <imagedata fileref="figures/nact-action-tab.png" format="PNG"/>
484 Shows the default properties of a newly created action.
488 <para>Default properties of a new action</para>
494 <!-- i18n: "Items list" is a UI label -->
495 In the <guilabel>Items list</guilabel>, the new action is
496 displayed in italic characters.
499 Italics are used as a reminder that the item has not yet been
503 As another reminder that there is some pending modifications,
504 an asterisk («sp;<literal>*</literal>&spraquo;)
505 comes to prefix the application name in the title bar.
508 <title>Qualifying your new action</title>
510 It merely consists of choosing how your action will be
511 displayed in the file manager context menu.
517 <!-- i18n: "My first action" is a user entry -->
518 Enter <userinput>My first action</userinput>
519 <!-- i18n: "Context label" is a UI label -->
520 in the <guilabel>Context label</guilabel> entry box.
523 <!-- i18n: "Context label" is a UI label -->
524 The <guilabel>Context label</guilabel> entry box contains
525 the label of the action as you want it to be displayed in
526 the file manager context menu.
529 The label is a mandatory property of your action. If it
530 happens to be empty, then your action will be considered as
531 invalid by &prodname;: it will be displayed in red in
532 <!-- i18n: "Items list" is a UI label -->
533 <guilabel>Items list</guilabel> and will never be candidate
534 to be displayed in the file manager context menus.
539 Enter <userinput>This will execute an action with some parameters</userinput>
540 <!-- i18n: "Tooltip" is a UI label -->
541 in the <guilabel>Tooltip</guilabel> entry box.
544 <!-- i18n: "Tooltip" is a UI label -->
545 The <guilabel>Tooltip</guilabel> entry box contains the text
546 you want to be displayed as a short help to your action.
551 Select <inlinegraphic fileref="figures/stock-icon-about.png" />
552 <!-- i18n: "Icon" is a UI label -->
553 in the <guilabel>Icon</guilabel> drop-down list.
556 <!-- i18n: "Icon" is a UI label -->
557 The <guilabel>Icon</guilabel> selection defines the icon
558 which will be associated with your action in file manager
559 context menus and in the toolbar.
562 You have two ways of choosing the icon associated to your
568 <!-- i18n: "Icon" is a UI label -->
569 Click on the <guilabel>Icon</guilabel> drop-down list
575 Click on <guibutton>Browse</guibutton> to search
576 for an image in the filesystem.
583 <title>Specifying the command to be executed</title>
585 When you will select your action in the file manager
586 context menu, this command will be executed, with
587 arguments of your choice.
591 <!-- i18n: "Command" is a UI label -->
592 Click on the <guilabel>Command</guilabel> tab to show the page
593 which will permit you to enter the command.
595 <figure id="nact-FIG-tab-command">
596 <title>Command page</title>
600 <imagedata fileref="figures/nact-command-tab.png" format="PNG"/>
604 Shows the Command tab.
605 This tab contains the name of the profile, the command to
606 be executed along with its parameters, and the configuration
607 of the starting working directory.
611 <para>Command page</para>
619 Enter <userinput>zenity</userinput> in the
620 <!-- i18n: "Path" is a UI label -->
621 <guilabel>Path</guilabel> entry box.
624 <!-- i18n: "Path" is a UI label -->
625 The <guilabel>Path</guilabel> entry box defines the command
626 which will be executed when you will select your action in
627 the file manager context menu.
630 You have two ways of defining the command to be executed:
635 <!-- i18n: "Path" is a UI label -->
636 Enter it in the <guilabel>Path</guilabel> entry box.
641 Click on <guibutton>Browse</guibutton> to select
642 the executable file on the filesystem.
647 If the command you enter does not have an absolute path,
648 then it will be searched for in the <envar>PATH</envar>
649 variable at execution time.
654 <!-- i18n: only "selected item(s)" is translatable -->
655 Enter <userinput>--info --text='%c selected item(s): %U'</userinput>
656 <!-- i18n: "Parameters" is a UI label -->
657 in the <guilabel>Parameters</guilabel>
661 <!-- i18n: "Parameters" is a UI label -->
662 The <guilabel>Parameters</guilabel> contains the arguments
663 which will be passed to your command when it will be executed.
664 These arguments may embed parameters which will be expanded
668 <!-- i18n: "Path" and "Parameters" are UI labels -->
669 If both <guilabel>Path</guilabel> and <guilabel>Parameters</guilabel>
670 are empty, then this action will be considered as invalid:
671 <!-- i18n: "Items list" is a UI label -->
672 it will be displayed in red in <guilabel>Items list</guilabel>
673 and will never be candidate to be displayed in the file
674 manager context menus.
679 <title>Saving</title>
681 To save all pending modifications, choose
685 <keycap>Ctrl</keycap>
689 <guimenu>File</guimenu>
690 <guisubmenu>Save</guisubmenu>
695 &nautilus; automatically takes into account your new action,
696 and displays it in its context menu.
698 <figure id="nact-FIG-start-nautilus-context">
699 <title>Your first action in the &nautilus; context menu</title>
703 <imagedata fileref="figures/start-context-menu-nautilus.png" format="PNG"/>
706 <phrase>Shows the first action in the &nautilus; context menu.
710 <para>Your first action in the &nautilus; context menu</para>
716 Cliking of the item in the &nautilus; context menu activates it,
717 and executes the corresponding command.
719 <figure id="nact-FIG-start-zenity">
720 <title>The result of the execution of your first action</title>
724 <imagedata fileref="figures/start-zenity-result.png" format="PNG"/>
728 Shows the result of the execution of your first action.
729 This is &zenity; dialog box, displaying the URI of the selected item.
733 <para>The result of the execution of your first action</para>