r948: Added a new root window property (_ROX_FILER_EUID_HOST) which points to
[rox-filer.git] / ROX-Filer / src / Docs / Manual.xml
blob21a931ac5007f1c822f5102acd98ad52ddc011fa
1 <?xml version="1.0" standalone="no"?>
2 <?xml-stylesheet href="to_html.xsl" type="text/xml"?>
4 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
5                       "/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd">
7 <book>
8 <bookinfo>
9   <title>
10     ROX-Filer User Manual
11     <ulink url="http://rox.sourceforge.net"/>
12   </title>
13   <author>
14     <firstname>Thomas</firstname><surname>Leonard</surname>
15     <affiliation>
16       <address><email>tal197@users.sourceforge.net</email></address>
17     </affiliation>
18   </author>
19   <copyright><year>2001</year><holder>Thomas Leonard</holder></copyright>
20   <legalnotice>
21     <title>Conditions</title>
22     <para>
23 This program is free software; you can redistribute it and/or modify
24 it under the terms of the GNU General Public License as published
25 by the Free Software Foundation; either version 2 of the License,
26 or (at your option) any later version.
28 This program is distributed in the hope that it will be useful, but
29 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
30 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
31 for more details.
33 You should have received a copy of the GNU General Public License
34 along with this program; if not, write to the Free Software Foundation,
35 Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA.
36     </para>
37   </legalnotice>
39   <abstract>
40     <para>
41 <application>ROX-Filer</application> is a graphical file manger for the X Window System. Its user
42 interface is based on the RISC OS filer and it supports similar features such
43 as application directories and drag-and-drop loading and saving of files. The
44 filer can also act as a pinboard, allowing you to pin frequently used files
45 onto the desktop background.
46     </para>
47   </abstract>
48 </bookinfo>
50 <chapter id="intro">
51   <title>Introduction</title>
52   <para>
53 <application>ROX-Filer</application> is a simple and easy to use graphical file manager for X11 &mdash; the
54 windowing system used on Unix and Unix-like operating systems.  It is also the
55 core component of the ROX Desktop <citation>ROX</citation>. Many of the filer's
56 features were inspired by RISC OS <citation>RISC OS</citation>. `ROX' stands for
57 `RISC OS&ndash;On&ndash;X'.
58   </para>
60 <sect1>
61   <title>Features</title>
62     <para>
64 <variablelist>
66 <varlistentry><term>XDND</term>
67 <listitem><para>
68 A common drag-and-drop protocol used, for example, by the GNOME
69 desktop<citation>GNOME</citation>. This allows data to be loaded into an
70 application by dragging it from a filer window to a program. The full
71 specification is given in <citation>DND</citation>.
72 </para></listitem></varlistentry>
74 <varlistentry><term>XDS</term>
75 <listitem><para>
76 An extension to XDND that allows applications to save data by
77 dragging an icon back to a filer window. The full specification is given in
78 <citation>XDS</citation>.
79 </para></listitem></varlistentry>
81 <varlistentry><term>Choices</term>
82 <listitem><para>
83 A simple, but flexible, system for managing user choices.  See
84 <citation>Choices</citation> for details.
85 </para></listitem></varlistentry>
87 <varlistentry><term>Application directories</term>
88 <listitem><para>
89 Self contained relocatable applications, where installation is as simple as
90 copying it to where you want it and uninstalling it is just a matter of
91 deleting a directory. Described later in this documentation.
92 </para></listitem></varlistentry>
94 <varlistentry><term>Thumbnails</term>
95 <listitem><para>
96 The filer can be made to display image files by using the image itself for the
97 icon, instead of a generic `this-is-an-image' icon. Very useful for organising
98 a directory full of photos!
99 </para></listitem></varlistentry>
101 </variablelist>
103   </para>
104 </sect1>
106 </chapter>
108 <chapter id="compiling">
109   <title>Compiling</title>
110   <para>
112 If you've just got hold of the filer by downloading the source archive
113 then you'll need to compile it before you can use it. If you downloaded
114 and installed a binary package, or if <application>ROX-Filer</application> was included with
115 your system, then you can skip this section. If you got here by clicking
116 on the `i' symbol in a filer window, or if typing <command>rox</command> at a
117 shell prompt works, then you don't need to compile.
119   <itemizedlist><title>To compile, you will need the following:</title>
121     <listitem><para>
122 Unix or Linux (root access is not required),
123     </para></listitem>
125     <listitem><para>
126 The X Window system (supplied as standard on all modern systems),
127     </para></listitem>
129     <listitem><para>
130 GTK+ 1.2.0 or later (libraries and headers) &mdash; get the latest version
131 from <citation>GTK+</citation>,
132     </para></listitem>
134     <listitem><para>
135 A C compiler, such as `gcc' (standard on most systems).
136     </para></listitem>
138   </itemizedlist>
140 All of the above are standard on most modern Linux distributions.
141 To check which version of GTK+ you have installed, run the
142 <command>gtk-config</command> command, like this 
143 (<prompt>$</prompt> is the shell prompt):
145   <screen>$ gtk-config --version
146 1.2.8</screen>
147 Due to bugs in earlier versions, GTK+ 1.2.8 is strongly
148 recommended.
149   </para>
151   <procedure><title>To compile:</title>
153     <step><para>
154 The filer needs some shared files to work &mdash; icons for the various
155 file types, rules for determining file types and default run actions.
156 These are installed by the `rox-base' package. Install rox-base (from
157 <ulink url="http://rox.sourceforge.net"/> now if you haven't done so already.
158     </para></step>
160     <step><para>
161 Change to the directory containing the ROX-Filer subdirectory.
162     </para></step>
164     <step><para>
165 Run the <command>install.sh</command> script, like this:
167       <screen>$ ./install.sh</screen>
169     </para></step>
171     <step><para>
172 <application>ROX-Filer</application> will perform various checks to find out what kind of system
173 it is being run on and will then compile. If it doesn't work then
174 please e-mail me and complain! Tell me what kind of system you have
175 and what errors were reported. If you manage to fix the problem yourself
176 then please e-mail me the fix.
178 The executable file is stored inside the ROX-Filer directory in a
179 different subdirectory for each platform. Therefore, you can compile
180 the same application on several different types of machine and then
181 run it from any of them using the AppRun script. This is particularly
182 useful in a network environment.
183     </para></step>
185     <step><para>
186 Once the filer has compiled you will be asked where you want to install
187 it. If you want to do a system-wide installation as root, you may
188 want to stop here, <command>su</command> to root and rerun the install script.
190 If you don't have the root password then don't worry &mdash; just follow
191 the instructions for installing into your home directory. 
192     </para></step>
193   </procedure>
195   <para>
197 You can now run the filer by running the <command>rox</command> script without
198 any options, like this:
200   <screen>$ rox</screen>
202 A window should appear and display the contents of the current directory.
204 If you installed the script into your home directory then you may
205 need to set your <envar>PATH</envar> environment variable so that the shell can
206 find it. For example, if you installed it into a directory called
207 <filename>bin</filename> in your home directory, use this:
209   <screen>$ PATH=$HOME/bin:$PATH; export PATH</screen>
211 or (if you are using the <citerefentry><refentrytitle>csh</refentrytitle>
212 <manvolnum>1</manvolnum></citerefentry> shell):
214   <screen>$ setenv PATH $HOME/bin:$PATH
215 $ rehash</screen>
217   </para>
218 </chapter>
220 <chapter id="invoking">
221   <title>Invoking</title>
222   <para>
224 By default, <application>ROX-Filer</application> will start by displaying the current directory.
225 You can get it to display other directories instead by listing them
226 after the command:
228 <screen>$ rox /home /usr /usr/local</screen>
230 You can also use it to open files, like this:
232 <screen>$ rox README</screen>
234 The filer supports various options; use <option>-h</option> for a list.
235 All options have long and short forms (eg <option>-h</option> and
236 <option>--help</option>) &mdash; although on some systems you can only use the
237 short versions.
238 </para><para>
239 Note that if the same version of the filer is already running on this
240 machine then, by default, it will be used to open the directories.
241 You can override this (perhaps because the old copy has stopped responding for
242 some reason) using the <option>--new</option> option.
243 </para><para>
244 For a complete list of command-line options, see <xref linkend="manpage"/>
245   </para>
247 <sect1>
248   <title><anchor id="run_pin" xreflabel="Pinboard support"/>Pinboard support</title>
249   <para>
251 If you want the filer to manage your desktop background then you use
252 the <option>--pinboard</option> option and supply a name for the pinboard,
255 <screen>$ rox --pinboard=MyPinboard</screen>
257 The pinboard configuration is saved in
258 <filename>&lt;Choices&gt;/ROX-Filer/pb_MyPinboard</filename>
259 as soon as you change it in some way (for example, by dropping a file
260 onto the background). You can have as many pinboards as you like and
261 switch between them by running rox again, eg:
263 <screen>$ rox --pinboard=MyOtherPinboard</screen>
265 To turn off the pinboard again, set the name to an empty string:
267 <screen>$ rox --pinboard=</screen>
269 See the <xref linkend="winman"/> if you have trouble getting the icons to
270 display correctly. The pinboard may also be turned on and off by locating
271 <filename>ROX-Filer</filename> in a filer window and choosing `Enable pinboard' or `Disable pinboard' from the menu.
273   </para>
274 </sect1>
276 <sect1>
277   <title><anchor id="run_pan" xreflabel="Panel support"/>Panels</title>
278   <para>
280 Panels work just like the pinboard. You can create a panel on any
281 side of the screen by using the options <option>--left</option>, <option>--right,</option>
282 <option>--top</option> and <option>--bottom</option>, depending on which side
283 of the screen the panel should appear on. On some systems, the short
284 (one letter) form of the options must be used. For example, to create
285 a panel along the bottom edge of the screen:
287 <screen>$ rox -b=MyPanel</screen>
289 The panel should be displayed in a window without a title bar. If
290 this does not work then see the <xref linkend="winman"/> for some ideas.
291 You can drag files onto either side of the panel to add them. Icons
292 can be repositioned by dragging them with the middle mouse button.
293 Changes to the panel are automatically saved to
294 <filename>&lt;Choices&gt;/ROX-Filer/pan_MyPanel</filename>.
295 As with the pinboard, you can switch between panel configurations
296 simply by running rox again with a different panel name. Specify a
297 blank name to remove the panel.
299 <screen>$ rox --bottom=MyOtherPanel
300 $ rox --bottom=</screen>
302   </para>
303 </sect1>
305 <sect1>
306   <title id="winman" xreflabel="window manager notes">Window manager notes</title>
307   <para>
309 You may have to play around with your window manager a bit to get
310 the pinboard icons and panels to display correctly (eg, without borders
311 and underneath all other windows). In particular, try setting the
312 stacking level / depth to low (or a negative value). Make sure any
313 'Keep transients above other windows' type options are turned off!
315 In order for the filer to receive mouse clicks on the background (used
316 for the pinboard support) you need a GNOME-compliant window manager.
317 To see if your window manager supports this, try clicking the right
318 mouse button on an unused area of the background. If you get the pinboard
319 menu, all is well.
320   </para>
322 <sect2><title>Sawfish / sawmill</title>
323   <para>
324 Older versions of Sawfish tried to guess whether you were using GNOME at
325 start-up and only provided support if so. You may need to add the line
326 <programlisting>(require 'gnome)</programlisting>
327 to your <filename>.sawfishrc</filename> file (see the sawfish manual
328 for more details).
329   </para>
330 </sect2>
332 <sect2><title>IceWM</title>
333   <para>
335 Paste these configuration settings into
336 <filename>~/.icewm/preferences</filename>:
338 <programlisting>
339 # Manage root window (EXPERIMENTAL - normally enabled!)
340 GrabRootWindow=1 # 0/1
341 # Bitmask of root window button click to use in window manager
342 UseRootButtons=3 # [0-255]
343 # Desktop mouse-button click to show the menu
344 DesktopWinMenuButton=1 # [0-20]
345 # Desktop mouse-button click to show the window list
346 DesktopWinListButton=2 # [0-5]
347 # Desktop mouse-button click to show the window list menu
348 DesktopMenuButton=0 # [0-20] 
349 </programlisting>
350 Paste these into <filename>~/.icewm/winoptions</filename>:
352 <programlisting>
353 # ROX-Filer pinboard and panel
354 ROX-Filer.icon: folder
355 ROX-Panel.layer: Dock
356 ROX-Panel.doNotCover: 1
357 ROX-Panel.ignoreWinList: 1
358 ROX-Panel.ignoreTaskBar: 1
359 ROX-Panel.ignoreQuickSwitch: 1
360 ROX-Pinboard.layer: Below
361 ROX-Pinboard.ignoreWinList: 1
362 ROX-Pinboard.ignoreTaskBar: 1
363 ROX-Pinboard.ignoreQuickSwitch: 1
364 ROX-Filer.layer: Normal
365 </programlisting>
366 Restart IceWM and the filer for the new settings to take effect.
368   </para>
369 </sect2>
371 <sect2><title>Others</title>
372   <para>
374 If all else fails, try running rox with the <option>-n</option> and <option>-o</option>
375 options; this overrides window manager control of the icons altogether
376 (<option>-n</option> forces the filer to start a new copy).
378   </para>
379 </sect2>
380 </sect1>
382 <sect1>
383   <title>Running as root</title>
384   <para>
386 If you run the filer as the `root' user then the filer will display
387 a message at the top of each window to remind you. The root user has
388 permission to access or change any file in the system, so be very
389 careful when using the filer like this.
391 Normally, you should log in as an ordinary user and only change to
392 root when you need to. You can create a simple script which runs the
393 filer as root &mdash; something like this:
395 <programlisting>
396 #!/bin/sh
398 su -m -c "rox $*"</programlisting>
400 Then, you can get a root filer window by simply running the script
401 and entering the root password. Remember, any file operations you
402 perform and any programs you run from these windows will run as root
403 too! Be careful!
405 You may find that the X server won't allow root (or other users) to
406 connect. Reading the manual pages for <command>xauth</command> and
407 <command>xhost</command> may give you some hints, but it varies
408 between systems (which is why this isn't built in to the filer!).
410   </para>
411 </sect1>
413 </chapter>
415 <chapter id="keys">
416   <title>Mouse button and key bindings</title>
418 <itemizedlist><title>Quick start:</title>
420   <listitem><para>Click the left
421   <footnote><para>This documentation assumes that button&ndash;1 is the left button, button&ndash;2
422 is the middle button and button&ndash;3 is the right button. This is not
423 always the case &mdash; for example, in a left-handed setup.</para></footnote>
424 mouse button to open files and directories.</para></listitem>
426   <listitem><para>
427 Click the right button to get a menu. Click over a file to perform an action on that file.
428   </para></listitem>
430   <listitem><para>
431 Drag files between windows to copy (left button) or move (middle button) them.
432   </para></listitem>
434 </itemizedlist>
436   <para>
437 By default, the mouse button bindings are designed to fit in with X
438 conventions. However, the behaviour is highly configurable &mdash; have a play in
439 the Options window if you don't like the normal settings. The normal settings
440 behave as follows:
441   </para>
443 <informaltable>
444 <tgroup cols="2">
445 <thead><row><entry>Key or mouse button</entry><entry>Action</entry></row></thead>
447 <tbody>
449 <row><entry>Left button click</entry><entry>
450 Open the file or directory clicked on. Hold down <keycap>Ctrl</keycap>
451 to select things instead of opening them. Hold down <keycap>Shift</keycap>
452 to look inside applications, treat files as text, follow symlinks or
453 mount devices.
454 </entry></row>
456 <row><entry>Middle button click</entry><entry>
457 Same as left click, but open a directory in a new window or close the viewer
458 when opening a file.
459 </entry></row>
461 <row><entry>Right button click</entry><entry>
462 Open the main menu. Hold down <keycap>Ctrl</keycap> while clicking to go
463 directly to the Selection submenu. Hold down <keycap>Shift</keycap> to get the
464 <guimenu>Send To</guimenu> menu. See the <xref linkend="SendTo"/> section.
465 </entry></row>
467 <row><entry>Drag an item  (left mouse button)</entry><entry>
468 Copy the file(s) to the destination (an application or another filer
469 window). Hold down <keycap>Shift</keycap> to move the file,
470 <keycap>Ctrl</keycap>+<keycap>Shift</keycap> to create
471 a symbolic link, or <keycap>Alt</keycap> to get a menu of possible actions.
472 </entry></row>
474 <row><entry>Drag an item (middle mouse button)</entry><entry>
475 When you let go, display a menu of possible actions.
476 There is an option to make this move the files rather than open the menu.
477 </entry></row>
479 <row><entry>Drag (not over an item)</entry><entry>
480 Select a group of items by dragging a box around them. With the left
481 mouse button, only the files in the box will be selected. If you hold
482 down <keycap>Ctrl</keycap> then the boxed items are added to the selection.
483 If you use the middle button then the boxed items switch between being selected
484 and unselected.
485 </entry></row>
487 <row><entry>Double-click background</entry><entry>
488 Resize the window to a sensible size.
489 </entry></row>
491 <row><entry><keycap>Backspace</keycap></entry><entry>
492 Change to viewing the parent directory.
493 </entry></row>
495 <row><entry>Cursor keys</entry><entry>
496 Move the cursor around.
497 </entry></row>
499 <row><entry>
500 <keycap>Page Up</keycap>, <keycap>Page Down</keycap></entry><entry>
501 Move the cursor up and down a page at a time.
502 </entry></row>
504 <row><entry><keycap>Home</keycap>, <keycap>End</keycap></entry><entry>
505 Move to the first/last entry in the directory.
506 </entry></row>
508 <row><entry><keycap>Return</keycap></entry><entry>
509 Acts like clicking on the file. You may hold down Shift for other
510 effects, as with clicking.
511 </entry></row>
513 <row><entry><keycap>Spacebar</keycap></entry><entry>
514 Toggles the item under the cursor between being selected and unselected,
515 and moves to the next item.
516 </entry></row>
518 <row><entry><keycap>Tab</keycap>, <keycap>Shift+Tab</keycap></entry><entry>
519 Moves the cursor to the next/previous selected item.
520 </entry></row>
522 </tbody></tgroup></informaltable>
524   <para>
525 Other keys can easily be defined by opening the
526 menu, moving the pointer over the item you want to use and pressing
527 a key. The key will appear in the menu and can be used from then on.
528 Key bindings are automatically saved when the filer quits.
530   </para>
531 </chapter>
533 <chapter id="selection">
534   <title>The selection</title>
535   <para>
536 When you select items in a <application>ROX-Filer</application> window,
537 the filer takes the <emphasis>primary selection</emphasis>. You can then paste
538 into another window to get the pathnames of the selected files.
539   </para>
541 <procedure>
542   <title>Example: loading a file into an application that doesn't support drag-and-drop:</title>
544   <step><para>Open the application's Open dialog box.</para></step>
546   <step><para>
547 <keycap>Ctrl</keycap>-click on the file in <application>ROX-Filer</application> to select it.
548   </para></step>
550   <step><para>
551 Click the middle button in the filename box in the application to
552 paste the name in.
553   </para></step>
554 </procedure>
556   <para>
557 Note that clicking the middle mouse button in the main area of most web-browsers
558 will open the selected file.
559   </para><para>
560 If you select something else (eg, some text in another program), the selected
561 items in the filer window will be shown shaded (the filer no longer has the primary selection).
562 Changing the selection (eg, by dragging a box around an item with the middle
563 button) will cause the filer to regain the primary selection.
564   </para>
565 </chapter>
567 <chapter id="toolbar">
568   <title><anchor id="Toolbar" xreflabel="Toolbar"/>The toolbar</title>
569   <para>
571 By default, each window has a toolbar along the top. You can disable
572 this (or make it larger) from the Options window, as well as set which
573 tools appear on the toolbar. Normally, you should click with the left
574 mouse button (1). However, many tools can perform a related function
575 if clicked on with buttons 2 or 3 (middle or right).
576   </para>
578 <informaltable><tgroup cols="3">
580 <thead>
581 <row><entry> 
582 Icon</entry><entry>
583 Mouse button 1</entry><entry>
584 Other button
585 </entry></row>
587 </thead>
588 <tbody>
590 <row><entry>
591 Cross</entry><entry>
592 Close the window</entry><entry>
593 Open a new window
594 </entry></row><row><entry> 
595 Up arrow</entry><entry>
596 Change to parent directory</entry><entry>
597 Show parent in a new window <xref linkend="newwin_fn"/>
598 </entry></row><row><entry>
599 House</entry><entry>
600 Change to home directory</entry><entry>
601 Show home in a new window <xref linkend="newwin_fn"/>
602 </entry></row><row><entry>
603 Looping arrows</entry><entry>
604 Reread the directory contents</entry><entry>
605 Open a new window
606 </entry></row><row><entry>
607 Magnifying glass</entry><entry>
608 Make icons bigger</entry><entry>
609 Make icons smaller
610 </entry></row><row><entry>
611 List</entry><entry>
612 Hide or show extra details</entry><entry>
613 Same
614 </entry></row><row><entry>
615 Dot files</entry><entry>
616 Toggle the display of hidden file (those with names starting with a dot)</entry><entry>
617 Same
618 </entry></row><row><entry>
619 Information</entry><entry>
620 Show <application>ROX-Filer</application>'s help files</entry><entry>
621 Same
622 </entry></row>
623 </tbody></tgroup></informaltable>
625 <para>
626 <anchor id="newwin_fn" xreflabel="[1]"/>[1]
627 If the 'New window on button 1' option is turned on
628 then the default is to open a new window &mdash; clicking with the other
629 button reuses the same window instead.
630 </para>
632   <para>
633 Dragging files to the Up or Home icons acts just like dragging them
634 into the directory which the button leads to.
636 The toolbar can also show the number of files in the directory, and
637 information about the selection. This can be turned on or off in the
638 Options box.
641   </para>
642 </chapter>
644 <chapter id="menus">
645   <title>The menus</title>
646   <para>
647 By default, you can open a menu by right clicking over a pinboard, panel or filer window.
649 In filer windows, you may also press <keycap>\</keycap> to open the menu. As a
650 shortcut, you can open the File submenu directly by holding down the
651 <keycap>Control</keycap> key when opening the menu. Here is a full description
652 of each menu item:
654 <informaltable><tgroup cols="2">
656 <thead><row><entry>Entry</entry><entry>Action</entry></row></thead>
658 <tbody>
659 <row><entry><guimenuitem>Display</guimenuitem></entry><entry>
660 Change the display settings.
661 </entry></row>
663 <row><entry><guimenuitem>File</guimenuitem></entry><entry>
664 Operations on the selected items.
665 </entry></row>
667 <row><entry><guimenuitem>Select</guimenuitem></entry><entry>
668 Control which items are selected.
669 </entry></row>
671 <row><entry><guimenuitem>Options...</guimenuitem></entry><entry>
672 Configure <application>ROX-Filer</application>.
673 </entry></row>
675 <row><entry><guimenuitem>New</guimenuitem></entry><entry>
676 Create a new file or subdirectory inside this directory.
677 </entry></row>
679 <row><entry><guimenuitem>Xterm Here</guimenuitem></entry><entry>
680 Open an xterm with its current directory set to this directory.
681 </entry></row>
683 <row><entry><guimenuitem>Window</guimenuitem></entry><entry>
684 Operations on the window as a whole.
685 </entry></row>
687 </tbody></tgroup></informaltable>
689   </para>
691 <sect1>
692   <title>The display menu</title>
693   <para>
695 <informaltable><tgroup cols="2">
697 <thead><row><entry>Entry</entry><entry>Action</entry></row></thead>
699 <tbody>
700 <row><entry><guimenuitem>Huge Icons</guimenuitem></entry><entry>
701 Extra large icons (mainly useful with thumbnails, see below).
702 </entry></row><row><entry> 
704 <guimenuitem>Large Icons</guimenuitem></entry><entry>
705 Each object in the directory is shown as a large icon with its name
706 below.
707 </entry></row><row><entry>
709 <guimenuitem>Small Icons</guimenuitem></entry><entry>
710 Items are drawn smaller than usual, allowing you to see more files
711 at once.
712 </entry></row><row><entry>
714 <guimenuitem>Huge, With...</guimenuitem></entry><entry>
715 As for <guimenuitem>Large, With...</guimenuitem>, but with extra large icons.
716 </entry></row><row><entry>
718 <guimenuitem>Large, With...</guimenuitem></entry><entry>
719         <para>Entries are displayed along with some extra details:</para>
720         <itemizedlist>
722         <listitem><para><guimenuitem>Summary</guimenuitem>
723         shows the file permissions, owner, group, size and modification time.
724         </para></listitem>
726         <listitem><para><guimenuitem>Sizes</guimenuitem>
727         shows just the size of each file (not directories).
728         </para></listitem>
730         <listitem><para><guimenuitem>Permissions</guimenuitem>
731         shows just the permissions and owner.
732         </para></listitem>
734         <listitem><para><guimenuitem>Type</guimenuitem>
735         shows the MIME type of each file.
736         </para></listitem>
738         <listitem><para><guimenuitem>Times</guimenuitem>
739         shows the times the file was last accessed, modifed and changed.
740         Reading a file's contents or listing a directory updates the
741         <emphasis>access time</emphasis>; modifying the contents of a file or
742         the list of files in a directory updates the <emphasis>modification
743         time</emphasis>; changing a file's owner or permissions updates the
744         <emphasis>change time</emphasis>.
745         </para></listitem>
747         </itemizedlist>
749 </entry></row><row><entry>
751 <guimenuitem>Small, With...</guimenuitem></entry><entry>
752 As above, but with a smaller icon and all on one line.
753 </entry></row><row><entry>
755 <guimenuitem>Sort by Name</guimenuitem></entry><entry>
756 Items are arranged by name. There is an option to make this case-sensitive.
757 </entry></row><row><entry>
759 <guimenuitem>Sort by Type</guimenuitem></entry><entry>
760 Items are grouped by their types and then sorted by name within the
761 groups.
762 </entry></row><row><entry>
764 <guimenuitem>Sort by Date</guimenuitem></entry><entry>
765 Most recently modified first.
766 </entry></row><row><entry>
768 <guimenuitem>Sort by Size</guimenuitem></entry><entry>
769 Largest first.
770 </entry></row><row><entry>
772 <guimenuitem>Show Hidden</guimenuitem></entry><entry>
773 If on, files beginning with a dot are shown, otherwise they are hidden.
774 </entry></row><row><entry>
776 <guimenuitem>Refresh</guimenuitem></entry><entry>
777 Rereads the contents of the directory and details of all the files
778 in it. Use this if the display becomes out-of-date.
779 </entry></row><row><entry>
781 <guimenuitem>Create Thumbs</guimenuitem></entry><entry>
782 Tries to load every file as an image and use that image as the file's
783 icon. Useful if you have a directory full of photos and can't remember
784 which is which!
785 </entry></row>
786 </tbody></tgroup></informaltable>
788   </para>
790 <sect2><title><anchor id="Permissions" xreflabel="Permissions"/>
791     Permissions
792   </title>
793   <para>
795 The permissions field, when shown, is made up of four groups of three
796 flags. Each flag is displayed as a letter if it is on and a dash (&ndash;)
797 if not. The first three characters show the permissions for the owner
798 of the file, the second for other members of the file's group and
799 the third for everyone else. Whichever group applies to the <application>ROX-Filer</application>
800 process itself is shown underlined. The fourth group shows any special
801 flags.
802   </para><para>
803 The meanings of the characters are:
805 <itemizedlist>
807 <listitem><para><computeroutput>r</computeroutput> &mdash;
808 Permission to read the contents of a file, or the names of files
809 in a directory.</para></listitem>
811 <listitem><para><computeroutput>w</computeroutput> &mdash;
812 Permission to alter the contents of a file, or change which names
813 appear in a directory.</para></listitem>
815 <listitem><para><computeroutput>x</computeroutput> &mdash;
816 Permission to run the file as a program, or refer to the files
817 listed within the directory.</para></listitem>
819 <listitem><para><computeroutput>U</computeroutput> &mdash;
820 This program executes with the <emphasis>effective user ID</emphasis> of its
821 owner rather than the person who ran it.</para></listitem>
823 <listitem><para><computeroutput>G</computeroutput> &mdash;
824 This program executes with the <emphasis>effective group ID</emphasis> of its
825 group, regardless of who ran it.</para></listitem>
827 <listitem><para><computeroutput>T</computeroutput> &mdash;
828 Entries in this directory can only be altered or removed by the
829 people who own the files even if they have write permission on the
830 directory itself.</para></listitem>
832 </itemizedlist>
833 For example,
834 <programlisting>
835 <emphasis role="underline">rwx</emphasis>,rwx,r-x/---</programlisting>
836 means that the owner of the file is the same as the effective user of
837 <application>ROX-Filer</application> (basically, you own the file), you and
838 members of the file's group have read, write and execute permission and other
839 people have only read and execute permission. There are no special flags set.
841 The rules which determine which permissions apply may vary slightly between
842 operating systems, but a rough guide is:
844 <itemizedlist>
846 <listitem><para>If the <emphasis>effective user ID</emphasis> of the process is equal to the file's
847 owner, then the owner permissions apply.
848 </para></listitem>
850 <listitem><para>Otherwise, if the <emphasis>effective group ID</emphasis> of the process is equal
851 to the file's group OR the file's group is one of the process's <emphasis>supplemental
852 groups</emphasis> then the group permissions apply.
853 </para></listitem>
855 <listitem><para>Otherwise, the `other' permissions apply. The <emphasis>real user ID</emphasis>
856 and <emphasis>real group ID</emphasis> have no effect (except that a process may
857 set its real IDs to its effective IDs).
858 </para></listitem>
860 </itemizedlist>
862   </para>
863 </sect2>
864 </sect1>
866 <sect1>
867   <title>The selection menu</title>
868   <para>
870 All of these work in the same way &mdash; if you open the menu with some
871 items selected then the operation applies to those items. If you open
872 then menu over an item while there is no selection then that item
873 is temporarily selected. If you choose one of these while there is
874 no selection at all then the window goes into `target mode'; the operation
875 happens to the next item you click on. Click on the window background,
876 press Escape, or click with the right mouse button to cancel target
877 mode. Target mode is mainly useful with the `Single click navigation'
878 option and keys bound to the various menu entries.
880 Note that individual applications may add extra menu items to the
881 top of this submenu when you click over them &mdash; see
882 <xref linkend="AppDir"/> for details.
885 <informaltable><tgroup cols="2">
886 <thead><row><entry>Entry</entry><entry>Action</entry></row></thead>
887 <tbody>
889 <row><entry> 
890 <guimenuitem>Copy...</guimenuitem></entry><entry>
891 Make a copy of this object.
892 </entry></row>
894 <row><entry>
895 <guimenuitem>Rename...</guimenuitem></entry><entry>
896 Change the name used for this object, or move it between directories.
897 </entry></row>
899 <row><entry>
900 <guimenuitem>Link...</guimenuitem></entry><entry>
901 Create a symbolic link to this name.
902 </entry></row>
904 <row><entry>
905 <guimenuitem>Shift Open</guimenuitem></entry><entry>
906 Opens applications as directories, files as text/plain, mount points by
907 mounting or unmounting them and symlinks by opening the directory containing
908 the thing they point to. This is the same effect as clicking with Shift
909 held down. The text of the menu entry changes to show which action
910 will be performed.
911 </entry></row>
913 <row><entry>
914 <guimenuitem>Help</guimenuitem></entry><entry>
915 Explain what kind of thing is selected. For applications, display
916 the help files.
917 </entry></row>
919 <row><entry>
920 <guimenuitem>Info</guimenuitem></entry><entry>
921 Display extra information about this object.
922 </entry></row>
924 <row><entry>
925 <guimenuitem>Set Run Action...</guimenuitem></entry><entry>
926 Allows you to set the default program to use when opening files of
927 this type. See <xref linkend="RunAction"/> section for details.
928 </entry></row>
930 <row><entry>
931 <guimenuitem>Set Icon...</guimenuitem></entry><entry>
932 You can give each file or directory its own special icon using this
933 feature &mdash; simply drag a suitable image onto <xref linkend="SetIcon"/>.
934 </entry></row>
936 <row><entry>
937 <guimenuitem>Open (A)VFS</guimenuitem></entry><entry>
938 Open the file as if it was a directory &mdash; see the
939 <xref linkend="vfs"/> section.
940 </entry></row>
942 <row><entry>
943 <guimenuitem>Send To...</guimenuitem></entry><entry>
944 Opens the `Send To' menu, allowing you to send the selected files
945 to one of a list of applications. See the
946 <xref linkend="SendTo"/> section.
947 </entry></row>
949 <row><entry>
950 <guimenuitem>Delete</guimenuitem></entry><entry>
951 Remove all the selected entries from the directory. Subdirectories
952 will have their contents deleted first. Deleting symlinks only removes
953 the link, not the thing it points to.
954 </entry></row>
956 <row><entry>
957 <guimenuitem>Disk Usage</guimenuitem></entry><entry>
958 Count the sizes of all the selected items. Directories also have their contents
959 counted. Symlinks count themselves, not the things they point to.
960 </entry></row>
962 <row><entry>
963 <guimenuitem>Permissions</guimenuitem></entry><entry>
964 Allows you to change the permissions for the selected files.
965 </entry></row>
967 <row><entry>
968 <guimenuitem>Find</guimenuitem></entry><entry>
969 Search for files by specifying various conditions &mdash; see the
970 <xref linkend="Searching"/> section.
971 </entry></row>
973 </tbody></tgroup></informaltable>
974   </para>
976   <formalpara><title>Note about symlinks:</title>
977     <para>
978 A symbolic link stores the <emphasis>location</emphasis>
979 of another file. Deleting the symlink doesn't affect the other file.
980 Deleting the other file means that the symlink won't work. There are
981 two types of symbolic link &mdash; Relative and Absolute. An absolute
982 link stores the path from the root directory to the target file (eg
983 <filename>/home/fred/MyFile</filename>).
985 A relative path stores the path from the symlink
986 to the target (eg <filename>../fred/MyFile</filename>).
987 If the target file is never going to move then you want an absolute link, but
988 if the target may move (and the symlink will be moved with it) then you want a
989 relative link.
990     </para>
991   </formalpara>
992 </sect1>
994 <sect1>
995   <title>The new menu</title>
996   <para>
998 Each entry in this submenu opens a savebox for creating a new file
999 or directory. There are two standard entries; the others are the contents
1000 of your <filename>&lt;Choices&gt;/Templates</filename> directory, if it exists.
1003 <informaltable><tgroup cols="2">
1004 <thead><row><entry>Entry</entry><entry>Action</entry></row></thead>
1005 <tbody>
1006 <row><entry> 
1007 Directory</entry><entry>
1008 Create a new directory.
1009 </entry></row><row><entry>
1010 File</entry><entry>
1011 Create a blank file.
1012 </entry></row><row><entry>
1013 &lt;user entries&gt;</entry><entry>
1014 Copy a file from your Templates directory.
1015 </entry></row>
1016 </tbody></tgroup></informaltable>
1019 To add your own entries, create a new directory called
1020 <filename>~/Choices/Templates</filename>
1021 (if you have the default CHOICESPATH) and put any files you want in
1022 there. Each file in the directory will appear on the menu and the
1023 box that appears will copy it. For example, you could create a blank
1024 HTML file:
1026 <programlisting>
1027 &lt;html&gt;
1028   &lt;head&gt;
1029     &lt;title&gt;My Page&lt;/title&gt;
1030   &lt;/head&gt;
1031   &lt;body&gt;
1032     The contents.
1033   &lt;/body&gt;
1034 &lt;/html&gt;
1035 </programlisting>
1037 Save this as <filename>index.html</filename> inside the
1038 <filename>Templates</filename> directory and you can easily create new
1039 HTML files. You can also save blank documents from various applications
1040 into here (eg, a blank spreadsheet, a blank letter, etc).
1041   </para><para>
1042 Note that you cannot set keyboard shortcuts for these user-defined
1043 entries at present.
1045   </para>
1046 </sect1>
1048 <sect1>
1049   <title>The select menu</title>
1050   <para>
1051 <informaltable><tgroup cols="2">
1052 <thead><row><entry>Entry</entry><entry>Action</entry></row></thead>
1053 <tbody>
1054 <row><entry> 
1055 <guimenuitem>Select All</guimenuitem></entry><entry>
1056 Select every item in this window.
1057 </entry></row>
1059 <row><entry><guimenuitem>Clear Selection</guimenuitem></entry><entry>
1060 Unselect every item in this window.
1061 </entry></row>
1063 <row><entry>
1064 <guimenuitem>Select If...</guimenuitem></entry><entry>
1065 Select just those files that match the given pattern &mdash;
1066 see the <xref linkend="SelectIf"/> section).
1067 </entry></row>
1069 </tbody></tgroup></informaltable>
1071   </para>
1072 </sect1>
1074 <sect1>
1075   <title>The window menu</title>
1076   <para>
1079 <informaltable><tgroup cols="2">
1080 <thead><row><entry>Entry</entry><entry>Action</entry></row></thead>
1081 <tbody>
1082 <row><entry> 
1083 <guimenuitem>Parent, New Window</guimenuitem></entry><entry>
1084 Open a new window displaying this window's parent.
1085 </entry></row>
1087 <row><entry>
1088 <guimenuitem>Parent, Same Window</guimenuitem></entry><entry>
1089 As above, but reuse this window.
1090 </entry></row>
1092 <row><entry>
1093 <guimenuitem>New Window</guimenuitem></entry><entry>
1094 Open another window onto this directory.
1095 </entry></row>
1097 <row><entry>
1098 <guimenuitem>Home Directory</guimenuitem></entry><entry>
1099 Change to your home directory.
1100 </entry></row>
1102 <row><entry>
1103 <guimenuitem>Resize Window</guimenuitem></entry><entry>
1104 Set the window to a sensible size for its contents.
1105 </entry></row>
1107 <row><entry>
1108 <guimenuitem>Close Window</guimenuitem></entry><entry>
1109 Close this window.
1110 </entry></row>
1112 <row><entry>
1113 <guimenuitem>Enter Path...</guimenuitem></entry><entry>
1114 Open the path-entry box (see the the <xref linkend="mini"/> section).
1115 </entry></row>
1117 <row><entry>
1118 <guimenuitem>Shell Command...</guimenuitem></entry><entry>
1119 Open the shell command box (see the <xref linkend="mini"/> section).
1120 </entry></row>
1122 <row><entry>
1123 <guimenuitem>Show ROX-Filer Help</guimenuitem></entry><entry>
1124 Same as selecting ROX-Filer and choosing `Help' from the menu.
1125 </entry></row>
1127 </tbody></tgroup></informaltable>
1130   </para>
1131 </sect1>
1133 <sect1>
1134   <title><anchor id="SendTo" xreflabel="Send To menu"/>The send to menu</title>
1135   <para>
1137 The `Send To' menu provides a quick way to send some files to an application.
1138 The filer scans all the <filename>SendTo</filename> directories in your
1139 <envar>CHOICESPATH</envar> and lists the contents on this menu.
1140   </para><para>
1141 To change which applications appear here you should choose the
1142 <guimenuitem>Customise</guimenuitem> item from the bottom
1143 of the menu to create and open your own SendTo directory. Applications can be
1144 symlinked into this directory by dragging them in with <keycap>Control</keycap>
1145 and <keycap>Shift</keycap> held down.
1146   </para><para>
1147 Opening the Send To menu via the main menu is rather slow, so it is
1148 normally opened by clicking the Menu mouse button over a file while
1149 holding the <keycap>Shift</keycap> key down.
1151   </para>
1152 </sect1>
1154 </chapter>
1156 <chapter id="icons">
1157   <title>The pinboard and panels</title>
1158   <para>
1160 The <xref linkend="run_pin"/> and <xref linkend="run_pan"/> sections explain
1161 how to turn the pinboard and panels on. Once on, you may drop items from filer
1162 windows onto the them to pin them up. Clicking on a pinned item acts just like
1163 clicking on it in a filer window. You can drag pinned icons just like normal
1164 icons and you can right-click on one to see the popup menu.
1165   </para><para>
1166 Drag pinned icons with the middle mouse button to move them around
1167 (they snap to a grid on the pinboard). Changes to the pinboard and
1168 panel are automatically saved. Clicking on pinned icons with Control
1169 held down selects and unselects them. Click on the background to unselect
1170 them all.
1171   </para><para>
1172 If the panel has so many icons that they can't all be shown at once
1173 then you can scroll it by dragging the blank area in the middle.
1174   </para>
1176   <important><para>
1177 Pinning a file does <emphasis>not</emphasis> copy it, it merely
1178 creates a shortcut to the original file. If you delete the file, then
1179 you've lost it! Removing a pinned file from its pinboard or panel
1180 only removes the link. This is different to most other filers...
1181   </para></important>
1183 <sect1>
1184   <title>The pinboard and panel menus</title>
1185   <para>
1187 These menus are both the same, and very simple:
1190 <informaltable><tgroup cols="2">
1191 <thead><row><entry>Entry</entry><entry>Action</entry></row></thead>
1192 <tbody>
1194 <row><entry> 
1195 <guimenuitem>ROX-Filer</guimenuitem></entry><entry>
1196 Show the filer's help, edit the options or open your home directory.
1197 </entry></row>
1199 <row><entry> 
1200 <guimenuitem>File `file'</guimenuitem></entry><entry>
1201 Offers a smaller version of the filer's submenu of the same name.
1202 </entry></row>
1204 <row><entry> 
1205 <guimenuitem>Edit Item</guimenuitem></entry><entry>
1206 Change the name displayed under the icon, or the pathname the item
1207 points to.
1208 </entry></row>
1210 <row><entry> 
1211 <guimenuitem>Show Location</guimenuitem></entry><entry>
1212 Open a directory viewer showing where the file is stored.
1213 </entry></row>
1215 <row><entry> 
1216 <guimenuitem>Remove Item(s)</guimenuitem></entry><entry>
1217 Remove the selected items from the pinboard or panel.
1218 </entry></row>
1220 </tbody></tgroup></informaltable>
1222 If you are setting up the defaults for multiple users and
1223 you wish to create a `Home' icon that leads to each user's home directory
1224 then you should first create a new icon and then use
1225 <guimenuitem>Edit Icon</guimenuitem> to change the location to
1226 <filename>~</filename> and the name to `Home'.
1227   </para><para>
1228 Note that individual applications may add extra menu items to the
1229 top of this menu when you click over them &mdash; see <xref linkend="AppDir"/>
1230 for details.
1231 </para>
1232 </sect1>
1234 <sect1>
1235   <title>Panel applets</title>
1236   <para>
1238 <application>ROX-Filer</application> allows you to run small programs inside the panel &mdash; such
1239 programs are called <emphasis>applets</emphasis>. To run an applet, drag it onto
1240 the panel from a filer window and instead of the applet's icon being
1241 shown, the applet will run.
1242   </para>
1244   <procedure><title>To create your own applets (programmers only!):</title>
1246     <step><para>
1247 Create a directory for the applet (eg <filename>MyApplet</filename>).
1248     </para></step>
1250     <step><para>
1251 Put an icon called <filename>.DirIcon.png</filename> inside it (so the directory
1252 appears with an icon).
1253     </para></step>
1255     <step><para>
1256 Make a <filename>Help</filename> directory inside it for when the user chooses
1257 <guimenuitem>Help</guimenuitem> from the menu.
1258     </para></step>
1260     <step><para>
1261 Create an executable file called <filename>AppletRun</filename>. This will be
1262 passed the XID of the panel socket window when the directory is dragged
1263 onto the panel. You can use this to create a GtkSocket widget. An
1264 example applet (written in python) is available at 
1265 <ulink url="http://rox.sourceforge.net/applets.php3"/>
1266     </para></step>
1268   </procedure>
1269 </sect1>
1270 </chapter>
1272 <chapter id="virtual">
1273   <title>
1274     <anchor id="vfs" xreflabel="Virtual file systems"/>Virtual file systems
1275   </title>
1276   <para>
1278 Some types of file can be represented as a directory. A typical example
1279 is a zip file, which contains an entire directory structure in compressed
1280 form. It is often useful to be able to open up such a file as if it
1281 was a real directory, and the VFS system allows you to do this.
1283 <itemizedlist><title>To use this feature you must have one or both of the following:</title>
1285 <listitem><para>
1286 A system such as AVFS<citation>AVFS</citation> which causes the kernel to support
1287 various Virtual File Systems directly. This is the best option since
1288 all programs will be able to access the contents of the VFS. You may
1289 require root access to install such a system, however, and it is not
1290 available on all platforms.
1291 </para></listitem>
1293 <listitem><para>
1294 Support for the Midnight Commander VFS library compiled into
1295 <application>ROX-Filer</application>. This happens automatically when you
1296 compile <application>ROX-Filer</application> if it can find
1297 the VFS library &mdash; this means having <filename>libvfs.so</filename>
1298 (or <filename>libvfs.a</filename>) in a system library directory or in the
1299 directory in the environment variable <envar>LD_LIBRARY_PATH</envar>. In this case,
1300 you will be able to view the directory structure and copy files out of it, but
1301 not change it. Support for this may be added later.
1302 <application>Midnight Commander</application> is part of the GNOME project.
1303 </para>
1305 <para>
1306 When using libvfs, the menu structure is slightly different &mdash; <guimenuitem>Open
1307 AVFS</guimenuitem> is replaced by the <guisubmenu>Open VFS</guisubmenu> submenu.
1308 This is simply a short-cut for using the path-entry box (explained below), so
1309 if you want to use a VFS not listed on the menu you can type in the path
1310 directly, eg: <filename>/home/fred/archive.zip#uzip/</filename>.
1312 Don't forget the final slash!
1314 </para></listitem>
1315 </itemizedlist>
1317 </para>
1319 <procedure><title>Step by step example of adding VFS support</title>
1320 <note><para>
1321         Some versions of libvfs don't work correctly this way. AVFS is recommended instead.
1322 </para></note>
1324   <step><para>
1325                   
1326 This assumes that you have the Midnight Commander source in a directory
1327 called <filename>mc</filename>.
1328 You might need to replace <filename>libvfs.so</filename> with
1329 <filename>libvfs.a</filename>.
1331 <screen>
1332 $ cd mc
1333 $ ./configure
1334 $ cd vfs
1335 $ make libvfs.so
1336 </screen>
1338   </para></step><step><para>
1340 If you have the root password then install the library in a system library
1341 directory as normal.
1343   </para></step><step><para>
1345 If not,
1347 <screen>
1348 $ mkdir ~/lib
1349 $ cp libvfs.so ~/lib
1350 $ cd ~/Apps/ROX-Filer
1351 </screen>
1352 Edit the <filename>AppRun</filename> file to include this as the <emphasis>second</emphasis>
1353 line:
1355 <programlisting>LD_LIBRARY_PATH=$HOME/lib; export LD_LIBRARY_PATH</programlisting>
1357 This will ensure that <application>ROX-Filer</application> will look for the
1358 library in the new <filename>~/lib</filename> directory.
1360   </para></step><step><para>
1362 Finally, recompile:
1364 <screen>
1365 $ ./AppRun --compile
1369 checking for mc_stat in -lvfs... yes
1370 </screen>
1372 If you saw that line then it's worked! Well done!
1374   </para></step>
1376 </procedure>
1378 </chapter>
1380 <chapter id="minibuffer">
1381   <title><anchor id="mini" xreflabel="Minibuffer"/>The mini-buffer</title>
1382   <para>
1384 The mini-buffer is a white bar that appears along the bottom of the
1385 window and allows you to enter some text. Press Escape to get rid
1386 of it again. It behaves in different ways depending on how you invoked
1388   </para>
1390 <sect1>
1391   <title>The path-entry box</title>
1392   <para>
1394 This allows you to type in a path directly. As you type the display
1395 is updated to show the item entered visually. The main use is to find
1396 a file in a large directory quickly, but you can also use it for navigating
1397 between directories, or for selecting a full pathname from somewhere
1398 else and pasting it directly into the path-entry box.
1401 <informaltable><tgroup cols="2">
1402 <thead><row><entry>Key</entry><entry>Action</entry></row></thead>
1403 <tbody>
1405 <row><entry> 
1406 <keycap>Return</keycap></entry><entry>
1407 Open the currently selected item.
1408 </entry></row>
1410 <row><entry>
1411 <keycap>Tab</keycap></entry><entry>
1412 Shell-style tab completion.
1413 </entry></row>
1415 <row><entry>
1416 <keycap>Up</keycap>, <keycap>Down</keycap></entry><entry>
1417 Select the previous/next matching entry.
1418 </entry></row>
1419 </tbody></tgroup></informaltable>
1421   </para>
1423   <para>
1424 If you start entering a name beginning with a `.' then the `Show Hidden'
1425 feature is temporarily turned on so that the file can be shown.
1426   </para>
1428   <para>
1429 Tab completion tries to fill in as many characters for you as it can.
1430 For example, if there are two files in a directory called `save-mail-nov-1999'
1431 and `save-mail-dec-1999' then typing 'save' and pressing Tab will
1432 expand `save' to `save-mail-' and beep to indicate that the match
1433 is not complete. If you use tab completion on a directory and it is
1434 unique then the filer will automatically change into the directory.
1435 This behavior should be familiar to shell users.
1436   </para>
1438   <informalexample><para>
1439 Let's say you want to locate the documentation for Wine in the directory
1440 <filename>/usr/doc</filename> (which is usually very large).
1441 Here's how you could do it:
1443 <orderedlist>
1445 <listitem><para>
1446 Open the minibuffer by choosing <guimenuitem>Enter Path...</guimenuitem> from the
1447 <guimenu>Window</guimenu> menu.
1448 I usually bind this function to the slash (<keycap>/</keycap>) key.
1449 </para></listitem>
1451 <listitem><para>
1452 Press <keycap>CTRL</keycap>+<keycap>U</keycap> to delete the existing contents
1453 &mdash; this moves you to the root directory.
1454 </para></listitem>
1456 <listitem><para>
1457 Type <userinput>u&lt;Tab&gt;do&lt;Tab&gt;wi&lt;Tab&gt;</userinput>.
1458 As you type, the cursor will move to the correct subdirectory.
1459 If it beeps when you press Tab then you need to supply more letters.
1460 </para></listitem>
1462 </orderedlist>
1464   </para></informalexample>
1465 </sect1>
1467 <sect1>
1468   <title>The shell command box</title>
1469   <para>
1471 This provides a quick way of entering shell commands if you don't
1472 want to open an xterm. If you don't know what shell commands are,
1473 skip this section!
1474   </para><para>
1475 Just type in the command and press <keycap>Return</keycap> to execute it.
1476 <keycap>Up</keycap> and <keycap>Down</keycap> arrows move through previously
1477 entered commands.
1478 <keycap>Tab</keycap> does shell-style completion.
1479 Clicking on an item inserts its name into the minibuffer.
1480 If some items are selected then they are assigned to the positional
1481 parameters <userinput>$1</userinput>, <userinput>$2</userinput>, etc.
1482   </para><para>
1483 Opening the minibuffer with a selection adds <computeroutput>$@</computeroutput>
1484 to the end of the command &mdash; this expands to all the selected files.
1485 If there is no selection, but a file is under the cursor, the name
1486 of that file is inserted.
1487   </para>
1489   <informalexample><para>Examples:
1491 <orderedlist><title>To untar a <filename>.tgz</filename> archive:</title>
1493 <listitem><para>
1494 Open the minibuffer by choosing <guimenuitem>Shell Command...</guimenuitem> from
1495 the <guimenu>Window</guimenu> menu.
1496 I usually bind this to the bang (<keycap>!</keycap>) key.
1497 </para></listitem>
1499 <listitem><para>
1500 Type <userinput>tar xzf</userinput> and click on the file.
1501 The leading space is automatically inserted.
1502 </para></listitem>
1504 <listitem><para>
1505 Press <keycap>Return</keycap> to execute it.
1506 </para></listitem>
1508 </orderedlist>
1510 <orderedlist><title>To print all the selected files:</title>
1512 <listitem><para>
1513 Open the shell command minibuffer.
1514 </para></listitem>
1516 <listitem><para>
1517 Type <userinput>lpr</userinput> at the beginning of the line and press
1518 <keycap>Return</keycap>.
1519 </para></listitem>
1521 </orderedlist>
1523 </para></informalexample>
1525 <itemizedlist><title>Notes</title>
1527 <listitem><para>
1528 Be careful; you will not be asked to confirm! If in doubt, start the
1529 command with <userinput>xmessage</userinput> so that it will be displayed
1530 rather than executed.
1531 </para></listitem>
1533 <listitem><para>
1534 <citerefentry><refentrytitle>sh</refentrytitle></citerefentry>
1535 is always used as the name of the shell to run (mainly because
1536 <citerefentry><refentrytitle>bash</refentrytitle></citerefentry> and
1537 <citerefentry><refentrytitle>csh</refentrytitle></citerefentry> treat
1538 positional parameters differently).
1539 However, <envar>PATH</envar> is searched to find it so you can still use
1540 another shell if you want by naming it sh and putting it in your path.
1541 </para></listitem>
1543 <listitem><para>
1544 Commands execute in the background, so you can say:
1546 <command>sleep 240; xmessage Time to go!</command>
1547 </para></listitem>
1549 </itemizedlist>
1550 </sect1>
1552 <sect1>
1553   <title><anchor id="SelectIf" xreflabel="Select If"/>The conditional selection box</title>
1554   <para>
1556 Use this if you want to automatically select all files in the directory
1557 which match a condition.
1559 <orderedlist><title>For example, to select all files larger than 5Mb:</title>
1561 <listitem><para>
1562 Open the Select If minibuffer.
1563 </para></listitem>
1565 <listitem><para>
1566 Type <userinput>Size &gt; 5Mb</userinput> and press <keycap>Return</keycap>.
1567 </para></listitem>
1569 </orderedlist>
1571 Just those files over 5 Mb in size will be selected. The expressions
1572 you can enter are in the same form as described in the
1573 <xref linkend="Searching"/> section, except that
1574 <userinput>prune</userinput> has no effect since the contents of
1575 directories are never checked anyway. You can press <keycap>Tab</keycap>
1576 to jump to each selected file in turn.
1578   </para>
1579 </sect1>
1580 </chapter>
1582 <chapter id="actions">
1583   <title>Action windows</title>
1584   <para>
1586 Action windows are those boxes that appear while you're doing a
1587 Copy/Move/Link/etc
1588 operation. The status line at the top of the window shows the current
1589 directory or object that the window is processing. The scrolling area
1590 below is the log area &mdash; it shows what has been done and may display
1591 questions here.
1592   </para><para>
1593 At the bottom are four buttons and, sometimes, some options. The buttons
1594 work as follows:
1596 <variablelist>
1598 <varlistentry><term><guibutton>Quiet</guibutton></term><listitem><para>
1599 will do simple operations without asking you to confirm each
1600 one. By turning this on and off during an operation you can use it
1601 like a pause button.
1602 </para></listitem></varlistentry>
1604 <varlistentry><term><guibutton>Yes</guibutton></term><listitem><para>
1605 answers yes to the question displayed in the log area.
1606 </para></listitem></varlistentry>
1608 <varlistentry><term><guibutton>No</guibutton></term><listitem><para>
1609 answers no to the question displayed in the log area.
1610 </para></listitem></varlistentry>
1612 <varlistentry><term><guibutton>Abort</guibutton></term><listitem><para>
1613 kills the current operation (if any) and closes the action
1614 window.
1615 </para></listitem></varlistentry>
1617 </variablelist>
1619 You can control which actions get started automatically (without you
1620 having to click on <guibutton>Quiet</guibutton> at the start) from the
1621 Options window.
1622   </para>
1624 <sect1>
1625   <title>Action window options</title>
1626   <para>
1628 Some actions have options, which appear as option boxes at the bottom
1629 of the window. They are:
1631 <itemizedlist>
1633 <listitem><para>
1634 <guilabel>Force</guilabel> means that the filer won't treat non-writeable
1635 files as special.  Normally, it confirms the deletion even if
1636 <guibutton>Quiet</guibutton> is pressed.
1637 Note that you still can't remove files from non-writeable directories because
1638 in that case you really don't have permission.
1639 </para></listitem>
1641 <listitem><para>
1642 <guilabel>Brief</guilabel> prevents the filer logging a message every time it
1643 does something.  Use this to speed things up if large numbers of messages are
1644 being logged.
1645 </para></listitem>
1647 <listitem><para>
1648 <guilabel>Recurse</guilabel> means that doing something to a directory will
1649 also do the same thing to all its contents, and the contents of any
1650 subdirectories, and so on.
1651 </para></listitem>
1653 </itemizedlist>
1655   </para>
1656 </sect1>
1657 </chapter>
1659 <chapter id="searching">
1660   <title><anchor id="Searching" xreflabel="Searching"/>Searching</title>
1661   <para>
1663 The Find feature looks through all the selected files and directories
1664 and any subdirectories (recursively) looking for items that match
1665 a particular expression.
1667 If you know the name of a file then just enter it in the `Expression:'
1668 box, enclosed in single quotes. For example, to find a file called
1669 <filename>log</filename> you would enter <userinput>'log'</userinput>.
1671 Remember to use normal quotes, not double quotes (") or back-quotes (`).
1672   </para><para>
1673 As the filer finds matching files they are added to the results list.
1674 Clicking on an entry in the list opens a viewer showing the file you
1675 clicked on. The filer will use the same window to view other results
1676 (so, if you want the results shown in separate windows you must explicitly
1677 create a new window from the <guimenu>Window</guimenu> menu).
1678   </para>
1680 <sect1>
1681   <title>Wildcards</title>
1682   <para>
1684 You can also put shell-style wildcard characters inside the quotes,
1685 for example:
1687   <simplelist>
1689     <member><command>'*.html'</command></member>
1690     <member><command>'Report.*'</command></member>
1691     <member><command>'Draft[1-5]'</command></member>
1692     <member><command>'main.[ch]'</command></member>
1694   </simplelist>
1696 Look at the
1697 <citerefentry><refentrytitle>glob</refentrytitle>
1698 <manvolnum>7</manvolnum></citerefentry>
1699 manpage if you want to know more about shell wildcards.
1700   </para><para>
1701 If the pattern you enter contains a slash (`/') character then the
1702 pattern is matched against the file's full path, otherwise only the
1703 leafname is used. That is, <userinput>'*tmp*'</userinput> will find
1704 <filename>tmp</filename> and <filename>tmpfile</filename> but not
1705 <filename>/tmp/file</filename> &mdash; <userinput>'/*tmp*'</userinput> will find
1706 all three.
1707   </para>
1708 </sect1>
1710 <sect1>
1711   <title>Simple tests</title>
1712   <para>
1713 As well as finding files by their names you can also find them by
1714 various other attributes. Note that <emphasis>file</emphasis> is used here to
1715 mean anything that can appear in the filesystem &mdash; including directories,
1716 devices and so on.
1717   </para>
1719 <itemizedlist><title>These look at the type of the item being checked:</title>
1721 <listitem><para>
1722 <userinput>IsReg</userinput> matches any regular (ie, normal) file.
1723 </para></listitem>
1725 <listitem><para>
1726 <userinput>IsLink</userinput> matches symlinks.
1727 </para></listitem>
1729 <listitem><para>
1730 <userinput>IsDir</userinput> matches directories.
1731 </para></listitem>
1733 <listitem><para>
1734 <userinput>IsChar</userinput> matches character device files.
1735 </para></listitem>
1737 <listitem><para>
1738 <userinput>IsBlock</userinput> matches block device files.
1739 </para></listitem>
1741 <listitem><para>
1742 <userinput>IsDev</userinput> matches block or character device files.
1743 </para></listitem>
1745 <listitem><para>
1746 <userinput>IsPipe</userinput> matches pipes.
1747 </para></listitem>
1749 <listitem><para>
1750 <userinput>IsSocket</userinput> matches sockets.
1751 </para></listitem>
1753 </itemizedlist>
1755 <itemizedlist><title>These look at the permissions set on the file &mdash;
1756 see the <xref linkend="Permissions"/> section.</title>
1758 <listitem><para>
1759 <userinput>IsSUID</userinput> matches files which have the Set-UID bit set.
1760 </para></listitem>
1762 <listitem><para>
1763 <userinput>IsSGID</userinput> matches files which have the Set-GID bit set.
1764 </para></listitem>
1766 <listitem><para>
1767 <userinput>IsSticky</userinput> matches files with the sticky bit set.
1768 </para></listitem>
1770 <listitem><para>
1771 <userinput>IsReadable</userinput> matches files which you can read from.
1772 </para></listitem>
1774 <listitem><para>
1775 <userinput>IsWriteable</userinput> matches files which you can write to.
1776 </para></listitem>
1778 <listitem><para>
1779 <userinput>IsExecutable</userinput> matches files which you can execute.
1780 </para></listitem>
1782 </itemizedlist>
1784 <itemizedlist><title>And a couple of other useful ones:</title>
1786 <listitem><para>
1787 <userinput>IsEmpty</userinput> finds empty files (ie, those whose length is 0 bytes).
1788 </para></listitem>
1790 <listitem><para>
1791 <userinput>IsMine</userinput> finds files which you own.
1792 </para></listitem>
1794 </itemizedlist>
1796 </sect1>
1798 <sect1>
1799   <title>Logic operators</title>
1800   <para>
1801 You can combine the above tests in various ways to perform more advanced
1802 searches.
1803 An expression is actually made up of a list of <emphasis>cases</emphasis>,
1804 separated by commas. The filer will try to match each case in turn
1805 until one matches or there are no more cases left. For example, to
1806 search for files with several possible endings:
1808 <userinput>'*.gif', '*.htm', '*.html'</userinput>
1810 Further, each of the cases is actually a list of conditions. The case
1811 only matches if all of its conditions are met. So, to find a directory
1812 called <filename>lib</filename> or a regular file ending in
1813 <filename>.so</filename>:
1815 <userinput>IsDir 'lib', IsReg '*.so'</userinput>
1817 You can negate a condition by putting a <userinput>!</userinput> in front of it
1818 and you can use a sub-expression as a condition by bracketing it, like this:
1820 <screen>
1821 !(IsDir, IsReg)
1823 !IsDir !IsReg
1825 Not isdir and not isreg
1826 </screen>
1827 All three do the same thing.
1828   </para>
1829 </sect1>
1831 <sect1>
1832   <title>Comparisons</title>
1833   <para>
1834 You can also compare various values using the operators
1835 <userinput>&lt;</userinput>,
1836 <userinput>&lt;=</userinput>,
1837 <userinput>=</userinput>,
1838 <userinput>!=</userinput>,
1839 <userinput>&gt;</userinput>, and
1840 <userinput>&gt;=</userinput>
1841 (for less-than, less-than-or-equal-to, equal-to,
1842 not-equal-to, greater-than and greater-than-or-equal-to).
1844 When comparing times, you may find it helpful to use
1845 <userinput>after</userinput> and <userinput>before</userinput> instead of
1846 <userinput>&gt;</userinput> and <userinput>&lt;</userinput> to make things
1847 clearer.
1848   </para>
1850 <itemizedlist><title>
1851 The following are read from the file being checked and may be used
1852 for the values being compared:
1853 </title>
1855 <listitem><para>
1856 <userinput>atime</userinput> The time that the file was last accessed.
1857 </para></listitem>
1859 <listitem><para>
1860 <userinput>ctime</userinput> The time that the file's status was last changed.
1861 </para></listitem>
1863 <listitem><para>
1864 <userinput>mtime</userinput> The time that the file's contents were last modified.
1865 </para></listitem>
1867 <listitem><para>
1868 <userinput>size</userinput> The size of the file.
1869 </para></listitem>
1871 <listitem><para>
1872 <userinput>inode</userinput> The file's inode (index) number.
1873 </para></listitem>
1875 <listitem><para>
1876 <userinput>nlinks</userinput> The number of links to this file. That is, the number of directory
1877 entries which refer to this file. Note that symlinks don't count as
1878 references.
1879 </para></listitem>
1881 <listitem><para>
1882 <userinput>uid</userinput> The User ID of the file.
1883 </para></listitem>
1885 <listitem><para>
1886 <userinput>gid</userinput> The Group ID of the file.
1887 </para></listitem>
1889 <listitem><para>
1890 <userinput>blocks</userinput> The number of disk blocks being used by the file.
1891 </para></listitem>
1893 </itemizedlist>
1895   <para>
1896 Times are measured as seconds since the Unix Epoch (00:00:00 UTC,
1897 January 1, 1970). Sizes are in bytes. When specifying constants to
1898 compare these values with you may use various keywords to scale the
1899 value:
1901 <itemizedlist>
1903 <listitem><para>
1904 <userinput>Byte(s)</userinput> has no effect, but looks better.
1905 </para></listitem>
1907 <listitem><para>
1908 <userinput>Kb</userinput> multiplies by 1024, so 2Kb is the same as 2048.
1909 </para></listitem>
1911 <listitem><para>
1912 <userinput>Mb</userinput> multiplies by 1024<superscript>2</superscript>,
1913 ie 1024 Kb.
1914 </para></listitem>
1916 <listitem><para>
1917 <userinput>Sec(s)</userinput> has no effect, but looks nice.
1918 </para></listitem>
1920 <listitem><para>
1921 <userinput>Min(s)</userinput> multiplies by 60 to get minutes.
1922 </para></listitem>
1924 <listitem><para>
1925 <userinput>Hour(s), Day(s), Week(s), Year(s)</userinput> likewise convert to the relevant
1926 unit.
1927 </para></listitem>
1929 <listitem><para>
1930 <userinput>Ago</userinput> makes the time in the past relative to when the check is done.
1931 </para></listitem>
1933 <listitem><para>
1934 <userinput>Hence</userinput> makes the time in the future.
1935 </para></listitem>
1937 <listitem><para>
1938 <userinput>Now</userinput> is short for <userinput>0 Secs Hence</userinput>.
1939 </para></listitem>
1941 </itemizedlist>
1943 Some examples should make this all a bit clearer!
1945 <screen>
1946 mtime after 1 day ago
1948 size &gt; 10 Mb
1950 IsReg and nlinks &gt; 1
1951 </screen>
1952 The first finds files modified within the last 24 hours. You could
1953 use <userinput>&gt;</userinput> instead of <userinput>after</userinput>,
1954 but it's not so clear what is meant.
1955 </para><para>
1956 The second finds files larger than 10 Mb and the last finds
1957 regular files with more than one directory entry.
1958 </para><para>
1959 Be careful though &mdash; the filer doesn't check the context of the modifiers,
1960 so <userinput>size &gt; 1 day ago</userinput> is allowed, although it
1961 doesn't make much sense!
1963 Also, forgetting to use <userinput>ago</userinput> or
1964 <userinput>hence</userinput> will cause odd effects (the time will be
1965 measured relative to the Epoch rather than the current time).
1966 Finally, don't use <userinput>=</userinput> with times &mdash;
1967 <userinput>atime = 1 day ago</userinput> looks for a file accessed
1968 <emphasis>exactly</emphasis> 86400 seconds ago...
1970   </para>
1971 </sect1>
1973 <sect1>
1974   <title>Specials</title>
1975   <para>
1977 <itemizedlist>
1979 <listitem><para>
1980 <userinput>System(Command)</userinput> executes `Command' on the file. The test
1981 succeeds if the command returns an exit status of zero. A `%' character in
1982 `Command' is replaced by the full path of the file being checked.
1983 <userinput>System</userinput> is a very slow test to perform, so do it last if
1984 possible.  For example, if you're looking for a <filename>.c</filename> file
1985 containing the word `main', do:
1987 <screen>
1988 '*.c' system(grep -q main "%")
1989 </screen>
1990 so that the grep is only performed for files ending in <filename>.c</filename>
1991 (as opposed to only checking that the file ends in <filename>.c</filename> if
1992 it contains the word `main').
1993 </para></listitem>
1995 <listitem><para>
1996 <userinput>Prune</userinput> Always fails!
1997 <footnote><para>Note that this is the opposite of the
1998 <citerefentry><refentrytitle>find</refentrytitle><manvolnum>1</manvolnum>
1999 </citerefentry> command.</para></footnote>
2001 However, if it gets evaluated at all then it prevents the filer
2002 from checking inside the current directory. Remember the order in which
2003 the filer checks the expression!
2004 </para></listitem>
2006 </itemizedlist>
2008 Examples:
2010 <screen>
2011 '*.old' system(rm '%')
2013 'src' prune, '*.c'
2014 </screen>
2015 The first deletes each file ending in <filename>.old</filename>.
2016 The second looks for <filename>.c</filename> files, but does not bother
2017 checking inside directories called <filename>src</filename>.
2018 The expression is evaluated like this:
2020 <mediaobject>
2021   <imageobject>
2022     <imagedata align="center" format="PNG" fileref="../Prune.png"/>
2023   </imageobject>
2024   <textobject>
2025     <para>
2026 If file is named <filename>src</filename> then `Prune'.
2027 Either way, check if it ends in <filename>.c</filename> and include
2028 it in the results if so.
2029     </para>
2030   </textobject>
2031 </mediaobject>
2033   </para>
2034 </sect1>
2035 </chapter>
2037 <chapter id="options">
2038   <title>Options</title>
2039   <para>
2041 You can configure various aspects of <application>ROX-Filer</application> from
2042 the Options box.
2043 Choose <guimenuitem>Options...</guimenuitem> from a filer window menu to open
2044 it. 
2046 At the bottom of the window are four buttons:
2048 <itemizedlist>
2050 <listitem><para>
2051 <guibutton>Save</guibutton>
2052 puts all your choices into effect, and also saves them into
2053 your Choices directory for next time <application>ROX-Filer</application> is
2054 loaded. <application>ROX-Filer</application> will never save any preferences to
2055 disk unless you click on the <guibutton>Save</guibutton> button in the options
2056 window. Exactly where choices are loaded from and saved to is controlled by
2057 the <envar>CHOICESPATH</envar> environment variable &mdash; see
2058 <citation>Choices</citation> for details.
2059 </para></listitem>
2061 <listitem><para>
2062 <guibutton>OK</guibutton>
2063 puts your choices into effect without writing anything to disk.
2064 </para></listitem>
2066 <listitem><para>
2067 <guibutton>Apply</guibutton>
2068 works like <guibutton>OK</guibutton>, but without closing the Options window.
2069 </para></listitem>
2071 <listitem><para>
2072 <guibutton>Cancel</guibutton>
2073 closes the options box and forgets any changes you made.
2074 </para></listitem>
2076 </itemizedlist>
2078 Many of the options in the Options window have tooltips &mdash; hold the
2079 mouse pointer over the option to find out what it does.
2081   </para>
2083 <sect1>
2084   <title>Translation options</title>
2085   <para>
2087 You can choose which language the filer will display messages in from
2088 here. There are also two special choices:
2090 <itemizedlist>
2092 <listitem><para>
2093 <guimenuitem>None</guimenuitem> causes the untranslated English messages to be
2094 used;
2095 </para></listitem>
2097 <listitem><para>
2098 <guimenuitem>From LANG</guimenuitem> will use the value of the
2099 <envar>LANG</envar> environment variable as the name of the file to load
2100 from <filename>ROX-Filer/Messages</filename>.
2101 </para></listitem>
2103 </itemizedlist>
2105   </para>
2106 </sect1>
2108 <sect1>
2109   <title>Display options</title>
2110   <para>
2112 <itemizedlist>
2113 <listitem><para><guilabel>Ignore case when sorting</guilabel>
2114 treats upper and lower case letters as
2115 equivalent when sorting. If this is off then <filename>Zoo</filename> comes
2116 before <filename>animal</filename>, for example.
2117 </para></listitem>
2119 <listitem><para><guilabel>Ignore eXecutable bit for known extensions</guilabel> means that when a file
2120 has a known extension (eg <filename>.gif</filename>) the executable bit is
2121 ignored. This is useful if you have files on a Windows-type filesystem which are
2122 being shown as executable programs. However, it prevents a file such
2123 as <filename>script.sh</filename> from being treated as a program.
2124 </para></listitem>
2126 <listitem><para><guilabel>Directories always come first</guilabel> means that
2127 all directories are sorted and displayed at the top, then all the other items
2128 are sorted and displayed below. With this option off, directories are mixed in
2129 with the other files.
2130 </para></listitem>
2132 <listitem><para><guilabel>Large wrap width</guilabel> sets the maximum width
2133 for a file's name in `Large Icons' display mode before the text will wrap onto
2134 two lines. In `Huge Icons' mode, the wrap width is 50% larger than this value.
2135 </para></listitem>
2137 <listitem><para><guilabel>Max Small Icons width</guilabel> &mdash; as above,
2138 but applies when the display is in `Small Icons' display mode.
2139 </para></listitem>
2141 <listitem><para><guilabel>Inherit options from source window</guilabel> controls what
2142 happens when you open a new window from an existing window (eg, by clicking the middle button
2143 over a file). If on, the new window has the same options (icon size, sort order, etc) as the
2144 old window. If off, the new window has the default options.</para></listitem>
2146 <listitem><para><guilabel>Default settings for new windows</guilabel>. These correspond to the
2147 display styles you can choose from the <guimenuitem>Display</guimenuitem> menu.
2148 </para></listitem>
2150 <listitem><para><guilabel>Colour files based on their types</guilabel>.
2151 If on, each file's name is coloured depending on what kind of thing it is
2152 (regular file, directory, executable, etc). You can choose the colours from
2153 the list below.</para></listitem>
2155 </itemizedlist>
2157 The remaining options provide the default settings for newly opened
2158 windows &mdash; they correspond to choosing styles from the Display menu.
2159 Icon size is also used when switching off the details display from
2160 the toolbar.
2162   </para>
2163 </sect1>
2165 <sect1>
2166   <title>Pinboard options</title>
2167   <para>
2169 If you are using the pinboard features (see the <xref linkend="run_pin"/>
2170 section) then you can choose how the text under each icon is displayed. If
2171 you have a fairly uniform background then you may like to choose <guilabel>No
2172 background</guilabel>, which simply draws the text directly over the desktop
2173 background. However, users with more `noisy' backdrops may find such
2174 text hard to read; selecting <guilabel>Rectangular background slab</guilabel>
2175 will draw a solid rectangle behind the text to make it easier to read.
2177 You may also change the foreground and background colours used for
2178 the text by clicking on the colour slabs in the Options window.
2180 <itemizedlist>
2181 <listitem><para> <guilabel>Keep icons within screen limits</guilabel> prevents icons from going partly
2182 off the side of the screen.
2183 </para></listitem>
2185 <listitem><para> <guilabel>Icon grid step</guilabel> controls how finely the icons may be positioned.
2186 </para></listitem>
2188 </itemizedlist>
2190   </para>
2191 </sect1>
2193 <sect1>
2194   <title>Panel options</title>
2195   <para>
2197 If you are using panels (see the <xref linkend="run_pan"/> section)
2198 then this section lets you choose which icons will have textual labels
2199 underneath them.
2200 You can have labels on all icons, on no icons, or on all icons except
2201 applications.
2203   </para>
2204 </sect1>
2206 <sect1>
2207   <title>Action window options</title>
2208   <para>
2210 You can choose to start some operations automatically, without waiting
2211 for you to click on <guibutton>Quiet</guibutton>.
2212 Select each operation that you want to
2213 auto-start here. You can also set the default state for each of the
2214 options that appear inside action windows.
2216   </para>
2217 </sect1>
2219 <sect1>
2220   <title>Toolbar options</title>
2221   <para>
2223 <itemizedlist>
2224 <listitem><para> <guilabel>Unshade the tools you want:</guilabel> allows you to set which tools
2225 should appear on the toolbar. Click on the buttons below to shade and unshade
2226 them &mdash; shaded tools will not be shown on filer window toolbars.
2227 </para></listitem>
2229 <listitem><para> <guilabel>Toolbar type</guilabel> allows you to choose what
2230 kind of toolbars you want.
2231 <guimenuitem>None</guimenuitem> means that windows will not have a
2232 toolbar,
2233 <guimenuitem>Normal</guimenuitem> provides a small bar of icons, and
2234 <guimenuitem>Large</guimenuitem> displays larger buttons, with textual labels.
2235 </para></listitem>
2237 <listitem><para> <guilabel>Show totals of items</guilabel> shows the number of items displayed in a filer
2238 window, as well as the number of hidden items (if any) on the toolbar.
2239 When there's a selection, it shows the number of selected items and
2240 their combined size (excluding directories).
2241 </para></listitem>
2243 </itemizedlist>
2245 See the <xref linkend="Toolbar"/> section for details.
2247   </para>
2248 </sect1>
2250 <sect1>
2251   <title>Filer window options</title>
2252   <para>
2254 <itemizedlist>
2255 <listitem><para><guilabel>Automatically resize filer windows</guilabel> can be
2256 used to control when windows are automatically resized:
2258         <itemizedlist>
2259         <listitem><para><guilabel>...never</guilabel>
2260         turns off auto-resizing. Windows must be
2261         resized manually.
2262         </para></listitem>
2264         <listitem><para><guilabel>...when changing the display style</guilabel>
2265         will resize the
2266         window automatically when you change the icon size or the type of
2267         details to be displayed.
2268         </para></listitem>
2270         <listitem><para><guilabel>...always</guilabel>
2271         causes the window to resize whenever it
2272         seems useful (that is, when changing to a different directory or when
2273         switching between display styles).
2274         </para></listitem>
2275         </itemizedlist>
2277 </para></listitem>
2279 <listitem><para> <guilabel>Window size limit</guilabel> sets the largest size
2280 (as a percentage of the screen size) that the auto-resizer will resize windows
2282 </para></listitem>
2284 <listitem><para> <guilabel>Unique windows</guilabel> prevents you from having
2285 two windows showing the same directory. Opening a second view onto a directory
2286 closes the first.
2287 </para></listitem>
2289 </itemizedlist>
2291 The next two options control what happens when you press <keycap>Tab</keycap>
2292 in the path entry minibuffer:
2294 <itemizedlist>
2296 <listitem><para> <guilabel>Beep if Tab-completion fails</guilabel> &mdash; beep
2297 if there is no match, or there are several possible completions, each starting
2298 differently.
2299 </para></listitem>
2301 <listitem><para> <guilabel>Beep if there are several matches</guilabel> &mdash;
2302 beep if there are several matches, even though some letters were added.
2303 </para></listitem>
2305 </itemizedlist>
2307   </para>
2308 </sect1>
2310 <sect1>
2311   <title>Drag-And-Drop options</title>
2312   <para>
2314 <itemizedlist>
2315 <listitem><para><application>ROX-Filer</application> uses the standard XDND protocol for drag-and-drop. This
2316 protocol recommends that URIs should contain the hostname of the computer
2317 that the resource is on so that the program receiving the data can
2318 determine whether it can get the data directly or whether it must
2319 go via the X-server. However, many older programs (particularly GNOME
2320 applications) get confused by the hostname and fail to load the data
2321 correctly. If <guilabel>Don't use hostnames</guilabel> is on then the hostname part is
2322 omitted and <application>ROX-Filer</application> will work with these applications BUT you can't
2323 drag data to a program running on a different machine.
2324 </para></listitem>
2326 <listitem><para><guilabel>Allow dragging to icons in filer windows</guilabel> controls what happens when
2327 you drop files onto icons in filer windows. If on then drops onto
2328 directories will save the data inside the directory, while dropping
2329 onto programs will invoke the program on that data. If off then drops
2330 anywhere inside a filer window act like drops onto the window background
2331 &mdash; that is, the data will be saved into the directory being displayed.
2332 </para></listitem>
2334 <listitem><para><guilabel>Dragging files with the middle mouse button...</guilabel>
2335 you can choose whether this displays a menu (like <keycap>Alt</keycap> dragging) or moves the
2336 files (like <keycap>Shift</keycap> dragging).
2337 </para></listitem>
2339 <listitem><para><guilabel>Directories spring open</guilabel> controls what happens when you hold a file
2340 over a directory while dragging it. If on, the directory will `spring
2341 open' after a short pause, allowing you to navigate to any directory
2342 during a drag. You can also hold the pointer over the Home and Up
2343 buttons on the toolbar for a similar effect. You need to have the
2344 previous option enabled for this to have any effect on files displayed
2345 in a directory.
2346 </para></listitem>
2348 <listitem><para><guilabel>Spring delay</guilabel> sets how long, in thousanths of a second, the filer
2349 will wait before spring opening a directory as described above. If
2350 the above option is turned off, then this has no effect.
2351 </para></listitem>
2353 </itemizedlist>
2355   </para>
2356 </sect1>
2358 <sect1>
2359   <title>Menu options</title>
2360   <para>
2362 <itemizedlist>
2364 <listitem><para><guilabel>Xterm here program</guilabel> is the command used when you choose
2365 <guimenuitem>Xterm here</guimenuitem> from the menu.
2366 You can replace it with another command such as
2367 <command>gnome-terminal</command>, <command>konsole</command>, or anything
2368 else.</para></listitem>
2370 <listitem><para><guilabel>Size of icons in menus</guilabel> controls the size of the
2371 icons in the <guimenuitem>Send To</guimenuitem> and <guimenuitem>New</guimenuitem> menus.
2372 </para></listitem>
2374 </itemizedlist>
2376   </para>
2377 </sect1>
2379 <sect1>
2380   <title>Mouse bindings</title>
2381   <para>
2383 <itemizedlist>
2384 <listitem><para> <guilabel>New window on button 1</guilabel> swaps the actions of the two non-menu buttons
2385 when opening directories. This is provided for people who are used
2386 to the RISC OS mouse bindings.
2387 </para></listitem>
2389 <listitem><para> <guilabel>Menu on button 2</guilabel> swaps the actions of buttons 2 and 3 so that the
2390 middle button brings up the menus. This is provided for people who
2391 are used to the RISC OS mouse bindings.
2392 </para></listitem>
2394 <listitem><para> <guilabel>Single-click navigation</guilabel> means that clicking on a file or directory
2395 will open it. If off, clicking on files selects them instead &mdash; you
2396 must double click on a file to open it.
2397 </para></listitem>
2398 </itemizedlist>
2400 As an alternative to using the options window to put menu on button-2,
2401 some people prefer to use the command <command>xmodmap -e "pointer
2402 = 1 3 2"</command>, which makes the right mouse button button-2 and
2403 the middle one button-3 (this affects all programs, not just
2404 <application>ROX-Filer</application>).
2406   </para>
2407 </sect1>
2408 </chapter>
2410 <chapter id="types">
2411   <title>Filetypes</title>
2412   <para>
2414 All files have a MIME type in the form <emphasis>text/plain</emphasis>. Here,
2415 <emphasis>text</emphasis> is the <emphasis>media type</emphasis> and
2416 <emphasis>plain</emphasis> is the <emphasis>sub-type</emphasis>.
2417   </para><para>
2418 <application>ROX-Filer</application> uses a file's name to decide what its MIME
2419 type is, and then uses the MIME type to decide what icon to give it and what
2420 program to use when you open the file.
2421   </para>
2423 <sect1>
2424   <title><anchor id="RunAction" xreflabel="the Set Run Action box"/>
2425     The run action box
2426   </title>
2427   <para>
2429 This box appears when you choose <guimenuitem>Set Run Action...</guimenuitem>
2430 from the File menu, and is used to set which application is loaded when you click
2431 on a file.
2432   </para><para>
2433 For example, let's say you want to set things up so that opening a
2434 <filename>.gif</filename> file loads it into the Gimp.
2435 First, right-click over a gif image to open the menu and choose
2436 <guimenuitem>Set Run Action...</guimenuitem> from the
2437 <guimenuitem>File</guimenuitem> submenu.
2438 Then, you have a choice of two methods to set the run action:
2439   </para>
2441   <sect2><title>Setting the run action by drag-and-drop</title>
2442     <para>
2443 Drag the Gimp (from a filer window, a panel or the pinboard) onto
2444 the area marked <guilabel>Drop a suitable application here</guilabel>.
2445 From now on, clicking on a GIF file will load it into the Gimp.
2446     </para>
2447   </sect2>
2449   <sect2><title>Setting the run action by entering a shell command</title>
2450     <para>
2451 Type: <userinput>gimp "$1"</userinput>
2452 into the box labelled <guilabel>Enter a shell command</guilabel> and press
2453 <keycap>Return</keycap>. <userinput>$1</userinput>
2454 will be replaced by the name of the file you click on when this command
2455 is used. As before, clicking on any GIF image will now load it into
2456 the Gimp.
2457     </para>
2458   </sect2>
2460   <sect2><title>Setting the default media-type handlers</title>
2461     <para>
2462 Whichever method you use to set the action you have the choice of
2463 setting the run action just for that type, or setting the default
2464 for all files with that media-type which don't already have a specific
2465 action.
2466     </para><para>
2467 Since the Gimp can load many types of image, it makes sense
2468 to select the <guilabel>Set default for all `image/&lt;anything&gt;'</guilabel>
2469 option so you don't have to do it again for image/jpeg files and so on. However,
2470 this only affects types that don't already have a specific action
2471 (ie, those that would have brought up an error box if you tried to
2472 open them).
2473     </para>
2474   </sect2>
2475 </sect1>
2477 <sect1>
2478 <title><anchor id="SetIcon" xreflabel="the Set Icon box"/>
2479     The Set Icon box
2480   </title>
2481   <para>
2483 This box appears when you choose <guimenuitem>Set Icon...</guimenuitem>
2484 from the File menu, and is used to set which image to use to represent
2485 the file.
2486   </para><para>
2487 It works much like the Set Run Action box described above, except that
2488 you may specifiy an icon for one file individually (by name) as well as
2489 for all files of a particular type.
2490   </para><para>
2491 The directory icon inside the <guilabel>Drop an icon here</guilabel>
2492 area allows you to quickly get to a directory from which you are already
2493 using one or more icons.
2494   </para>
2495 </sect1>
2496   
2497 <sect1>
2498   <title>How filetypes are stored</title>
2499   <para>
2501 <application>ROX-Filer</application> uses three sub-directories in your Choices
2502 directory for filetypes:
2504 <variablelist>
2506 <varlistentry><term><filename>MIME-info</filename></term><listitem><para>
2507 contains files which specify what the MIME types for files
2508 should be, based on their extentions. All the files in all the
2509 <filename>MIME-info</filename> directories are scanned when the filer loads.
2510 <application>ROX-Filer</application> comes with a file containing many such
2511 rules &mdash; this is installed into the <filename>MIME-info</filename>
2512 directory by the rox-base package.
2513   </para><para>
2514 Many applications now come with a file called
2515 <filename>something.mime</filename>; copy these files into your
2516 <filename>MIME-info</filename> directory to make
2517 <application>ROX-Filer</application> automatically recognise the new extensions.
2518 Note that the filer must be restarted for the new files to be read.
2519 </para></listitem></varlistentry>
2521 <varlistentry><term><filename>MIME-types</filename></term><listitem><para>
2522 contains symlinks, one for each MIME type, which point
2523 to programs that can handle files of that type. To set what program
2524 is run when you click on the file you should normally use the <guimenuitem>Set
2525 Run Action...</guimenuitem> feature (see the <xref linkend="RunAction"/> section).
2526 However, you can also set the actions manually &mdash; for example, to make
2527 opening an HTML file load it into Netscape:
2529 <orderedlist>
2530 <listitem><para>
2531 Find the Netscape application and go to <guimenuitem>Link...</guimenuitem>
2532 on the menu.
2533 </para></listitem>
2535 <listitem><para>
2536 Enter <userinput>text_html</userinput> as the name for the link and drag the
2537 icon from the Link box into the <filename>MIME-types</filename> directory.
2538 </para></listitem>
2540 </orderedlist>
2542 You can also put actual programs in here as well as links if you want
2544 </para></listitem></varlistentry>
2546 <varlistentry><term><filename>MIME-icons</filename></term><listitem><para>
2547 contains the images used to display each type of file.
2548 So the filer will try to display an HTML file using the icon
2549 <filename>MIME-icons/text_html.xpm</filename>.
2550 </para></listitem></varlistentry>
2552 </variablelist>
2554 In both <filename>MIME-types</filename> and <filename>MIME-icons</filename>
2555 directories you can also provide default actions/images for each media type.
2556 For example, if <filename>text_html</filename> isn't found then the filer
2557 will try simply using <filename>text</filename>.
2559   </para>
2560 </sect1>
2561 </chapter>
2563 <chapter id="appdirs">
2564   <title><anchor id="AppDir" xreflabel="Application directories"/>
2565     Application directories
2566   </title>
2567   <para>
2568 An application directory is a directory which can be run as an application.
2569 It contains all the resources of an application &mdash; source code, binaries,
2570 documentation and so on. Keeping everything in one place make installation
2571 and uninstallation much easier for users. You can also keep multiple
2572 versions of a program by simply having several application directories.
2573 You may move and rename them as you please. Application directories
2574 make programs easier to use and install.
2575   </para><para>
2576   <!-- Note to translaters: Changed the wording here a bit from 1.1.7 -->
2577 They're more secure too, because you can compile an application as a user and
2578 then simply copy it as root. Since you don't have to run an install script
2579 you are free from the danger of running untrusted code as root. All you have
2580 to watch out for is setuid binaries.
2581   </para><para>
2583 The following files are treated as special by
2584 <application>ROX-Filer</application>:
2586 <itemizedlist>
2588 <listitem><para>
2589 <filename>AppRun</filename>
2590 is executed when you click on the directory &mdash; make sure
2591 it is executable (use the Permissions box)!
2592 </para></listitem>
2594 <listitem><para>
2595 <filename>.DirIcon.png</filename>
2596 is the image used to represent the directory (this works even if
2597 there is no <filename>AppRun</filename>).
2598 </para></listitem>
2600 <listitem><para>
2601 <filename>Help</filename>
2602 is the directory to be opened when you choose <guimenuitem>Help</guimenuitem>
2603 from the File menu.
2604 </para></listitem>
2606 <listitem><para>
2607 <filename>AppInfo.xml</filename>
2608 contains extra information about an application (see below).
2609 </para></listitem>
2611 <listitem><para>
2612 <filename>AppIcon.xpm</filename>
2613 is used if <filename>.DirIcon.png</filename> is missing (for backwards
2614 compatibility).
2615 </para></listitem>
2617 </itemizedlist>
2619 Have a look at the <filename>ROX-Filer</filename> application directory for a
2620 full example.
2622   </para>
2624 <note><para>For security reasons, an application directory must have the
2625 same owner as the <filename>AppRun</filename> file inside.</para></note>
2627 <sect1>
2628   <title>The AppInfo file</title>
2629   <para>
2631 <filename>AppInfo.xml</filename> is an XML file with the following structure
2632 (any elements may be omitted, and the file itself is optional):
2634 <screen>
2635 &lt;?xml version="1.0"?&gt;
2636 &lt;AppInfo&gt;
2637   &lt;Summary&gt;A graphical file manager&lt;/Summary&gt;
2638   &lt;About&gt;
2639     &lt;Purpose&gt;File manager&lt;/Purpose&gt;
2640     &lt;Version&gt;1.1.3 (07-May-2001)&lt;/Version&gt;
2641     &lt;Authors&gt;Thomas Leonard and others&lt;/Authors&gt;
2642     &lt;License&gt;GNU General Public License&lt;/License&gt;
2643     &lt;Homepage&gt;http://rox.sourceforge.net&lt;/Homepage&gt;
2644   &lt;/About&gt;
2645   &lt;AppMenu&gt;
2646     &lt;Item label="Enable pinboard" option="-p=Default"/&gt;
2647     &lt;Item label="Disable pinboard" option="-p="/&gt;
2648   &lt;/AppMenu&gt;
2649 &lt;/AppInfo&gt;
2650 </screen>
2652 <itemizedlist>
2654 <listitem><para>
2655 <userinput>Summary</userinput>
2656 is displayed in a tooltip when the mouse is held over the application.
2657 </para></listitem>
2659 <listitem><para>
2660 <userinput>About</userinput>
2661 contains a list of fields which are shown in the `File Info'
2662 box for the application (any element names may be used, but the above
2663 are suggested).
2664 </para></listitem>
2666 <listitem><para>
2667 <userinput>AppMenu</userinput>
2668 is a list of extra menu items to display for the application.
2669 When one is chosen, <filename>AppRun</filename> is called with
2670 <userinput>option</userinput> as its only argument. You can nest
2671 AppMenus inside other AppMenus.
2672 </para></listitem>
2674 </itemizedlist>
2676   </para>
2677 </sect1>
2678 </chapter>
2680 <chapter id="i18n">
2681   <title>Internationalisation</title>
2682   <para>
2684   </para>
2686 <sect1>
2687   <title><anchor id="LANG" xreflabel="Translations"/>
2688     Selecting a translation
2689   </title>
2690   <para>
2692 <application>ROX-Filer</application> is able to translate many of its messages,
2693 provided suitable translation files are provided: 
2695 <orderedlist>
2696 <listitem><para>Open the Options box from the menu,</para></listitem>
2697 <listitem><para>Select a language from the menu at the top,</para></listitem>
2698 <listitem><para>Click on <guibutton>Save</guibutton> and restart the filer
2699 for the new setting to take full effect.</para></listitem>
2700 </orderedlist>
2702   </para>
2703 </sect1>
2705 <sect1>
2706   <title>Creating a new translation</title>
2707   <para>
2709 <orderedlist>
2710 <listitem><para>Go into the <filename>src</filename> directory and create
2711 the file <filename>messages.pot</filename>:
2713 <screen>
2714 $ cd ROX-Filer/src
2715 $ make messages.pot
2716 </screen>
2718 </para></listitem>
2720 <listitem><para>Copy the file into the <filename>po</filename>
2721 subdirectory under <filename>src</filename> as
2722 <filename>&lt;name&gt;.po</filename>. Eg, if your
2723 language is referred to as `ml' (`my language'):
2725 <screen>$ cp messages.pot po/ml.po</screen>
2726 </para></listitem>
2728 <listitem><para>Load the copy into a text editor.</para></listitem>
2730 <listitem><para>Fill in the translations, which are all blank to start with.
2731 </para></listitem>
2733 <listitem><para>Run the <filename>make-mo</filename> script to create the
2734 binary file which <application>ROX-Filer</application> can use.
2735 You will need the GNU gettext package for this.
2736 If you don't have it then just send me the <filename>.po</filename> file
2737 and I'll convert it for you.
2739 <screen>
2740 $ cd ROX-Filer/src/po
2741 $ ./make-mo ml
2742 Created file ../../Messages/ml.gmo OK
2743 </screen>
2744 </para></listitem>
2746 <listitem><para>Edit <filename>ROX-Filer/Options.xml</filename> so that
2747 your language is listed, restart the filer and select it from the Options box
2748 (see the <xref linkend="LANG"/> section).
2749 </para></listitem>
2751 <listitem><para>Submit the <filename>.po</filename> file to me so that I
2752 can include it in future releases of the filer.
2753 </para></listitem>
2755 </orderedlist>
2756   </para>
2757 </sect1>
2759 <sect1>
2760   <title>Updating an existing translation</title>
2761   <para>
2763 <orderedlist>
2764 <listitem><para>Go into the directory containing the <filename>.po</filename>
2765 files and run the <filename>update-po</filename> script.
2766 This checks the source code for new and changed strings and updates all
2767 the translation files.
2769 <screen>
2770 $ cd ROX-Filer/src/po
2771 $ ./update-po
2772 </screen>
2773 </para></listitem>
2775 <listitem><para>Edit the file by hand as before, filling in the new blanks
2776 and updating out-of-date translations.
2777 Look out for <computeroutput>fuzzy</computeroutput> entries where
2778 <command>update-po</command> has made a guess; check it's correct and
2779 remove the <computeroutput>fuzzy</computeroutput> line.
2780 </para></listitem>
2782 <listitem><para>Run <command>make-mo</command> as before.</para></listitem>
2784 <listitem><para>Submit the updated file to me.</para></listitem>
2786 </orderedlist>
2788 See the <command>gettext</command> info page for more instructions on creating
2789 a translation.
2791   </para>
2792 </sect1>
2793 </chapter>
2795 <chapter id="hacking">
2796   <title>Hacking</title>
2797   <para>
2798 This is a quick start guide for people who want to modify the source
2799 code. If you make useful changes or fix bugs, please send patches
2800 to me or to the mailing list. Tell me which version you're using!
2801   </para>
2803 <sect1>
2804   <title>Compiling</title>
2805   <para>
2806 The first time you compile the program you need to do <command>AppRun
2807 --compile</command>, but in future you only need to run <command>make</command>
2808 in the <filename>src</filename> directory when you change the
2809 <filename>.c</filename> and <filename>.h</filename> files.
2810 You might want to run <command>make depend</command> too.
2811   </para>
2812 </sect1>
2814 <sect1>
2815   <title>Creating and applying patches</title>
2816   <para>
2817 When people make small modifications to the sources they will often
2818 distribute them as <emphasis>patch files</emphasis> &mdash; usually on the
2819 mailing list.
2821 To apply a patch, go into the <filename>src</filename> directory and run
2822 <command>patch</command> with the patch file. Then recompile, like this:
2824 <screen>
2825 $ cd ROX-Filer/src
2826 $ patch &lt; patchfile
2827 $ ../AppRun --compile
2828 </screen>
2830 You can remove the patch by simply repeating the above sequence &mdash;
2831 <command>patch</command> will detect that the patch is already applied
2832 and offer to remove it.
2833   </para><para>
2834 To create a patch you should first get the latest version of the filer
2835 from CVS (instructions on using CVS can be found on the web-site).
2836 Modify the program as you please. Create the patch using
2837 <command>cvs diff</command> from the appropriate directory:
2839 <screen>
2840 $ cvs diff -c &gt; my_patch
2841 </screen>
2843 This creates a human&ndash; and machine-readable patch file. Submit this
2844 to the mailing list. The are many reasons for posting patches rather
2845 that the modified files:
2847 <itemizedlist>
2848 <listitem><para>They are smaller, and hence shouldn't bounce.
2849 They are also quicker to download for people with slow connections.
2850 </para></listitem>
2852 <listitem><para>People can see what they're getting into before applying them!
2853 </para></listitem>
2855 <listitem><para>Patches can (usually) be applied to slightly modified
2856 versions of the sources. This means that people can apply several patches
2857 without each new one overwriting the others.
2858 </para></listitem>
2860 </itemizedlist>
2862   </para>
2863 </sect1>
2865 <sect1>
2866   <title>Autoconf</title>
2867   <para>
2868 Here's a quick explanation of the autoconf system in case you haven't
2869 used it before. See <command>info autoconf</command> for full details.
2870   </para><para>
2871 There's a file called <filename>configure.in</filename> which contains
2872 various tests (<command>info autoconf</command>).
2873 You run <command>autoconf</command> and it reads through the file
2874 and generates a shell script to perform the tests, saving it as
2875 <filename>configure</filename>.
2876 <filename>configure</filename> is normally distributed with the program because
2877 not everyone has autoconf.
2878   </para><para>
2879 You then run <filename>configure</filename> (in fact, let the
2880 <filename>AppRun</filename> script do it because
2881 it passes it some arguments), which performs all the tests. It reads
2882 in <filename>Makefile.in</filename> and <filename>config.h.in</filename>
2883 and fills in the missing values with the test results to produce
2884 <filename>Makefile</filename> and <filename>config.h</filename>.
2885   </para><para>
2886 You run <command>make</command>, which creates <filename>.o</filename>
2887 files from the <filename>.c</filename> files and links to produce
2888 <filename>ROX-Filer</filename>.
2889   </para>
2890 </sect1>
2892 <sect1><title>Data-structures</title>
2893   <para>
2894 The diagram below shows some of the major structures found in the
2895 filer and the relationships between them.
2896   </para>
2897 <mediaobject>
2898   <imageobject>
2899     <imagedata align="center" format="PNG" fileref="../Structs.png"/>
2900   </imageobject>
2901   <textobject><para>Can't display image.</para></textobject>
2902 </mediaobject>
2904   <para>
2905 To summarise, each window has its own <classname>FilerWindow</classname>
2906 structure.
2907   </para><para>
2908 This structure has pointers to a <classname>Collection</classname>
2909 (which is the widget which actually displays the files) and to a
2910 <classname>Directory</classname>, which is used to cache the directory
2911 contents.
2912   </para><para>
2913 Both <classname>Collection</classname> and
2914 <classname>Directory</classname> have pointers to (the same)
2915 <classname>DirItem</classname>s, each of which corresponds to one filesystem
2916 object.
2917   </para><para>
2918 Several <classname>FilerWindow</classname>s may share the same
2919 <classname>Directory</classname>.
2920   </para><para>
2921 While scanning is in progress the <classname>Directory</classname>
2922 keeps a list of the new items it has found
2923 (<emphasis>new_items</emphasis>) and the items which have changed in some way
2924 (<emphasis>up_items</emphasis>). It periodically notifies the filer window of
2925 the changes-so-far by calling all the functions in the
2926 <emphasis>users</emphasis> list (use <function>attach()</function>
2927 and <function>detach()</function> to add and remove functions to or from
2928 the list).
2929   </para>
2930 </sect1>
2931 </chapter>
2933 <appendix id="manpage"><title>Manual page</title>
2935 <refentry id="rox">
2937 <refmeta>
2938 <refentrytitle>ROX</refentrytitle>
2939 <manvolnum>1</manvolnum>
2940 </refmeta>
2942 <refnamediv>
2943 <refname>ROX-Filer</refname>
2944 <refpurpose>a simple graphical file manager</refpurpose>
2945 </refnamediv>
2947 <refsynopsisdiv>
2948 <cmdsynopsis>
2949 <command>rox</command>
2950 <arg choice="opt" rep="repeat"><option>OPTION</option></arg>
2951 <arg choice="opt" rep="repeat">FILE</arg>
2952 </cmdsynopsis>
2953 </refsynopsisdiv>
2955 <refsect1><title>DESCRIPTION</title>
2956 <para>
2957 ROX-Filer is a simple and easy to use graphical file manager for X11, the
2958 windowing system used on Unix and Unix-like operating systems.
2959 </para><para>
2960 It is also the core component of the ROX Desktop:
2961 <ulink url="http://rox.sourceforge.net"/>
2962 </para><para>
2963 Invoking <command>rox</command> opens each directory or file listed,
2964 or the current working directory if no arguments are given.
2965 </para>
2966 </refsect1>
2968 <refsect1><title>COMMAND-LINE OPTIONS</title>
2969   <para>
2970   <variablelist>
2972     <varlistentry><term><option>-b</option></term><term><option>--bottom=PANEL</option></term>
2973 <listitem><para>open PANEL as a bottom-edge panel.
2974 </para></listitem></varlistentry>
2976 <varlistentry><term><option>-c</option></term><term><option>--client-id=ID</option></term>
2977 <listitem><para>used for session management.
2978 </para></listitem></varlistentry>
2980 <varlistentry><term><option>-d</option></term><term><option>--dir=DIR</option></term>
2981 <listitem><para>open DIR as directory (not as an application, even if it looks
2982 like one).
2983 </para></listitem></varlistentry>
2985 <varlistentry><term><option>-D</option></term><term><option>--close=DIR</option></term>
2986 <listitem><para>close DIR and all its subdirectories.
2987 </para></listitem></varlistentry>
2989 <varlistentry><term><option>-h</option></term><term><option>--help</option></term>
2990 <listitem><para>display help about the various options.
2991 </para></listitem></varlistentry>
2993 <varlistentry><term><option>-l</option></term><term><option>--left=PANEL</option></term>
2994 <listitem><para>open PANEL as a left-edge panel.
2995 </para></listitem></varlistentry>
2997 <varlistentry><term><option>-m</option></term><term><option>--mime-type=FILE</option></term>
2998 <listitem><para>print MIME type of FILE and exit.
2999 </para></listitem></varlistentry>
3001 <varlistentry><term><option>-n</option></term><term><option>--new</option></term>
3002 <listitem><para>start a new filer, even if one already seems to be running. This also prevents the filer from forking (running in the background), which is useful for debugging.
3003 </para></listitem></varlistentry>
3005 <varlistentry><term><option>-o</option></term><term><option>--override</option></term>
3006 <listitem><para>override window manager control of panels.
3007 </para></listitem></varlistentry>
3009 <varlistentry><term><option>-p</option></term><term><option>--pinboard=PIN</option></term>
3010 <listitem><para>use pinboard PIN as the pinboard.
3011 </para></listitem></varlistentry>
3013 <varlistentry><term><option>-r</option></term><term><option>--right=PANEL</option></term>
3014 <listitem><para>open PANEL as a right-edge panel.
3015 </para></listitem></varlistentry>
3017 <varlistentry><term><option>-R</option></term><term><option>--RPC</option></term>
3018 <listitem><para>read and invoke SOAP RPC from standard input (see <xref linkend="soap"/>).
3019 </para></listitem></varlistentry>
3021 <varlistentry><term><option>-s</option></term><term><option>--show=FILE</option></term>
3022 <listitem><para>open a directory showing FILE.
3023 </para></listitem></varlistentry>
3025 <varlistentry><term><option>-t</option></term><term><option>--top=PANEL</option></term>
3026 <listitem><para>open PANEL as a top-edge panel.
3027 </para></listitem></varlistentry>
3029 <varlistentry><term><option>-u</option></term><term><option>--user</option></term>
3030 <listitem><para>show user name in each window.
3031 </para></listitem></varlistentry>
3033 <varlistentry><term><option>-v</option></term><term><option>--version</option></term>
3034 <listitem><para>display the version information and exit.
3035 </para></listitem></varlistentry>
3037 <varlistentry><term><option>-x</option></term><term><option>--examine=FILE</option></term>
3038 <listitem><para>FILE has changed; re-examine it.
3039 </para></listitem></varlistentry>
3041   </variablelist>
3042 </para>
3043 </refsect1>
3045 <refsect1><title>NOTES</title>
3046         <para>
3047 The main documentation for ROX-Filer is available by choosing
3048 <guimenuitem>Show ROX-Filer Help</guimenuitem> from the
3049 popup menu, or by clicking on the <guibutton>i</guibutton>
3050 toolbar icon.
3051         </para>
3052 </refsect1>
3054 <refsect1><title>LICENSE</title>
3055         <para>Copyright (C) 2001 Thomas Leonard.
3056         </para><para>
3057 You may redistribute copies of ROX-Filer under the terms of the GNU General
3058 Public License.
3059         </para>
3060 </refsect1>
3062 <refsect1><title>BUGS</title>
3063         <para>
3064                 Report bugs to <email>tal197@users.sourceforge.net</email>.
3065         </para>
3066 </refsect1>
3068 <refsect1><title>AUTHORS</title>
3069 <para>
3070 ROX-Filer was created by Thomas Leonard, with help from:
3071 </para><para>
3072 <simplelist columns='4'>
3073         <member>Christopher Arndt</member>
3074         <member>Jens Askengren</member>
3075         <member>Liav Asseraf</member>
3076         <member>Andrzej Borsuk</member>
3077         <member>Richard Boulton</member>
3078         <member>Simon Britnell</member>
3079         <member>Arnaud Calvo</member>
3080         <member>Andrew Clover</member>
3081         <member>Fabien Coutant</member>
3082         <member>Dmitry Elfimov</member>
3083         <member>Mattias Engdegard</member>
3084         <member>Andrew Flegg</member>
3085         <member>Alex Holden</member>
3086         <member>Jasper Huijsmans</member>
3087         <member>Bernard Jungen</member>
3088         <member>James Kermode</member>
3089         <member>Vincent Ledda</member>
3090         <member>Vincent Lefevre</member>
3091         <member>Victor Liu See-le</member>
3092         <member>Anders Lundmark</member>
3093         <member>Jose Romildo Malaquias</member>
3094         <member>Denis Manente</member>
3095         <member>Andras Mohari</member>
3096         <member>Christiansen Merel</member>
3097         <member>Jimmy Olgeni</member>
3098         <member>Andy Piper</member>
3099         <member>Michel Alexandre Salim</member>
3100         <member>Chris Sawer</member>
3101         <member>Taras</member>
3102         <member>Simon Truss</member>
3103         <member>Jan Wagemakers</member>
3104         <member>Stephen Watson</member>
3105         <member>Andre Wyrwa</member>
3106         <member>Diego Zamboni</member>
3107 </simplelist>
3108 </para><para>
3109 and many others; the <filename>Changes</filename> file contains more
3110 detailed information!
3111 </para>
3112 </refsect1>
3114 </refentry>
3115 </appendix>
3117 <appendix id="soap"><title>SOAP RPC</title>
3119 <para>When the filer starts you can use command-line options to control its behaviour.
3120 As an alternative to this, the filer allows you to specify operation as a
3121 <citation>SOAP</citation> RPC format message. In fact, if you use the command-line options,
3122 the filer converts to SOAP RPC internally.
3123 </para>
3125 <para>Currently, there is no advantage to this method, but in future this may provide
3126 a more flexible way to interface to the filer.</para>
3128 <para>All SOAP RPC messages are passed on standard input, like this:
3130 <screen>
3131 $ rox --RPC &lt;&lt; EOF
3132 &lt;?xml version="1.0"?&gt;
3133 &lt;env:Envelope xmlns:env="http://www.w3.org/2001/06/soap-envelope"&gt;
3134   &lt;env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer"&gt;
3135     &lt;Panel&gt;
3136       &lt;Name&gt;Default&lt;/Name&gt;
3137       &lt;Side&gt;Bottom&lt;/Side&gt;
3138     &lt;/Panel&gt;
3139   &lt;/env:Body&gt;
3140 &lt;/env:Envelope&gt;
3142 </screen>
3144 The following methods are recognised:</para>
3146 <itemizedlist>
3148 <listitem><para><function>CloseDir(Filename)</function>
3149 Close directory Filename and all its subdirectories.
3150 </para></listitem>
3152 <listitem><para><function>Examine(Filename)</function>
3153 Filename may have changed &mdash; check it and update the display.
3154 </para></listitem>
3156 <listitem><para><function>OpenDir(Filename)</function>
3157 Open a window showing directory Filename.
3158 </para></listitem>
3160 <listitem><para><function>Panel(Name, Side)</function>
3161 Open the panel named Name on screen side Side (Top|Bottom|Left|Right).
3162 Name can be a name in Choices (eg, `MyPanel') or a full pathname.
3163 </para></listitem>
3165 <listitem><para><function>Pinboard(Name)</function>
3166 Display pinboard Name on the desktop background.
3167 Name can be a name in Choices (eg, `MyPinboard') or a full pathname.
3168 </para></listitem>
3170 <listitem><para><function>Run(Filename)</function>
3171 Run Filename as if it was clicked on in the filer.
3172 </para></listitem>
3174 <listitem><para><function>Show(Directory, Leafname)</function>
3175 Open Directory and flash the file Leafname inside it.
3176 </para></listitem>
3178 </itemizedlist>
3180 </appendix>
3182 <bibliography>
3183   <title>References</title>
3185 <bibliomixed>
3186   <abbrev>ROX</abbrev><citetitle>The ROX desktop,
3187   <ulink url="http://rox.sourceforge.net"/></citetitle>
3188 </bibliomixed>
3190 <bibliomixed>
3191   <abbrev>RISC OS</abbrev><citetitle>RISC OS,
3192   <ulink url="http://www.riscos.com"/></citetitle>
3193 </bibliomixed>
3195 <bibliomixed>
3196   <abbrev>GTK+</abbrev><citetitle>GTK+ Toolkit,
3197   <ulink url="http://www.gtk.org"/></citetitle>
3198 </bibliomixed>
3200 <bibliomixed>
3201   <abbrev>GNOME</abbrev><citetitle>The GNOME desktop,
3202   <ulink url="http://www.gnome.org"/></citetitle>
3203 </bibliomixed>
3205 <bibliomixed>
3206   <abbrev>DND</abbrev><citetitle>The Drag and Drop protocol,
3207   <ulink url="http://www.newplanetsoftware.com/xdnd/"/></citetitle>
3208 </bibliomixed>
3210 <bibliomixed>
3211   <abbrev>XDS</abbrev><citetitle>The X Direct Save protocol,
3212   <ulink url="http://www.newplanetsoftware.com/xds/"/></citetitle>
3213 </bibliomixed>
3215 <bibliomixed>
3216   <abbrev>Choices</abbrev><citetitle>The ROX Choices system,
3217   <ulink url="http://rox.sourceforge.net/choices.php3"/></citetitle>
3218 </bibliomixed>
3220 <bibliomixed>
3221   <abbrev>enlightenment</abbrev><citetitle>Enlightenment,
3222   <ulink url="http://www.enlightenment.org"/></citetitle>
3223 </bibliomixed>
3225 <bibliomixed>
3226   <abbrev>AVFS</abbrev><citetitle>AVFS - A Virtual File System,
3227   <ulink url="http://sourceforge.net/projects/avf/"/></citetitle>
3228 </bibliomixed>
3230 <bibliomixed>
3231   <abbrev>SOAP</abbrev><citetitle>Simple Object Access Protocol (SOAP) 1.1
3232   <ulink url="http://www.w3.org/TR/SOAP/"/></citetitle>
3233 </bibliomixed>
3235 </bibliography>
3237 </book>