1 <?xml version="1.0" encoding="utf-8"?>
\r
2 <section id="GuidePluginsConfig">
\r
3 <title id="titleGuidePluginsConfig">Plugins Configuration</title>
\r
5 <section id="PluginsConfigurationDialog">
\r
6 <title>Plugins Configuration Dialog</title>
\r
8 This dialog allows user to add new plugins or modify the system ones. It is available in the menu
\r
10 <guimenu>Edit</guimenu>
\r
11 <guimenuitem>Configure Plugins</guimenuitem>
\r
16 The Plugins dialog shows list of all relevant plugins i.e. all installed desktop files that are designated either:
\r
17 <itemizedlist spacing="compact">
\r
20 <literal>Categories=Graphics</literal>
\r
23 <literal>Categories=X-Geeqie</literal>
\r
27 The list has the following columns:
\r
29 <variablelist spacing="compact">
\r
32 <guilabel>Name</guilabel>
\r
35 <para>Plugin name as specified in desktop file, and is the name displayed in menus.</para>
\r
40 <guilabel>Hidden</guilabel>
\r
44 <emphasis>Hidden</emphasis>
\r
45 for one of these reasons:
\r
48 the desktop file contains
\r
49 <literal>Hidden=TRUE</literal>
\r
51 <literal>NoDisplay=TRUE</literal>
\r
54 <literal>TryExec</literal>
\r
55 binary was not found
\r
58 <literal>MimeType</literal>
\r
59 list does not contain images
\r
62 <literal>MimeType</literal>
\r
64 <literal>Categories</literal>
\r
66 <literal>X-Geeqie</literal>
\r
72 <variablelist spacing="compact">
\r
75 <guilabel>Desktop file</guilabel>
\r
78 Name of the desktop file, used as an identifier in
\r
79 <link linkend="GuideOptionsKeyboard" endterm="titleGuideOptionsKeyboard" />
\r
85 <guilabel>Path</guilabel>
\r
87 <listitem>Full path to the desktop file. Desktop files in user directories override the system ones with the same name.</listitem>
\r
91 <section id="Addingnewplugin">
\r
92 <title>Adding new plugin</title>
\r
97 <inlinegraphic fileref="document-new.png" />
\r
102 opens a text editor with a desktop file template. You must amend the line
\r
103 <programlisting>Exec=command %f</programlisting>
\r
104 to contain the command you wish to execute. If it is more than a single command, you must create a script file and call that. If the location of the script file is not in your $PATH environment variable, you must include the full pathname.
\r
108 <section id="Modifyinganexistingplugin">
\r
109 <title>Modifying an existing plugin</title>
\r
114 <inlinegraphic fileref="gtk-edit.png" />
\r
119 opens a text editor with existing desktop file. For desktop files that are not writable by user, it allows saving to a Geeqie specific directory, where it overrides the system file (but only for Geeqie).
\r
122 <section id="Deletingaplugin">
\r
123 <title>Deleting a plugin</title>
\r
128 <inlinegraphic fileref="edit-delete.png" />
\r
133 can delete user writable desktop files. System desktop files can't be deleted directly, but it is possible to edit them and set
\r
134 <literal>Hidden=TRUE</literal>
\r
138 <section id="Specialplugins">
\r
139 <title>Special plugins</title>
\r
140 <para>A desktop file with one of the following names has a special function. It will replace the corresponding internal command.</para>
\r
142 <programlisting xml:space="preserve">
\r
143 geeqie-copy-command.desktop
\r
144 geeqie-move-command.desktop
\r
145 geeqie-rename-command.desktop
\r
146 geeqie-delete-command.desktop
\r
147 geeqie-folder-command.desktop
\r
150 <para>This can be used for example for a custom trash command or for manipulation of files under version control.</para>
\r
152 <section id="Geeqieextensions">
\r
153 <title>Geeqie desktop file keys</title>
\r
155 A desktop file for use only by Geeqie should have the following entries:
\r
157 Categories=X-Geeqie;
\r
158 OnlyShowIn=X-Geeqie;
\r
162 A menu path where the plugin will appear, instead of in the default
\r
164 <guimenu>Plugins</guimenu>
\r
166 , can be set by including:
\r
167 <programlisting>X-Geeqie-Menu-Path=<FileMenuPath></programlisting>
\r
171 <emphasis>FileMenuPath</emphasis>
\r
173 <programlisting xml:space="preserve">
\r
175 FileMenu/OpenSection
\r
176 FileMenu/SearchSection
\r
177 FileMenu/PrintSection
\r
178 FileMenu/FileOpsSection
\r
179 FileMenu/QuitSection
\r
182 SelectMenu/SelectSection
\r
183 SelectMenu/ClipboardSection
\r
184 SelectMenu/MarksSection
\r
186 EditMenu/EditSection
\r
187 EditMenu/OrientationMenu
\r
188 EditMenu/RatingMenu
\r
189 EditMenu/PropertiesSection
\r
190 EditMenu/PreferencesSection
\r
193 ViewMenu/WindowSection
\r
194 ViewMenu/FileDirMenu
\r
195 ViewMenu/FileDirMenu/FolderSection
\r
196 ViewMenu/FileDirMenu/ListSection
\r
197 ViewMenu/DirSection
\r
199 ViewMenu/ZoomMenu/ConnectZoomMenu
\r
201 ViewMenu/StereoMenu
\r
203 ViewMenu/OverlayMenu
\r
204 ViewMenu/ViewSection
\r
205 ViewMenu/ToolsSection
\r
206 ViewMenu/SlideShowSection
\r
208 HelpMenu/HelpSection
\r
212 If you want a plugin to use a user-definable path, the following entry must be made in the desktop file:
\r
213 <programlisting>X-Geeqie-Filter=true</programlisting>
\r
216 Desktop files containing this entry will be displayed in the Folder action list of the
\r
217 <link linkend="CopyMoveandLink" endterm="titleGuideSidebarsSortManager" />
\r
218 . The path of the bookmark clicked will be used by the desktop file.
\r
220 If the desktop file is called from the menu, when the plugin is executed you are presented with a dialogue which enables a path to be selected. The path selected, appended by the filename currently being processed, is made available to the shell script either as an environment variable or via a call to geeqie --remote. The following code demonstrates the use of both methods:
\r
221 <programlisting xml:space="preserve">
\r
224 destination=$(geeqie --remote --get-destination:"$file")
\r
226 echo "$destination"
\r
227 echo $GEEQIE_DESTINATION
\r
232 If you want to run a plugin in full-screen mode and wish full-screen to be maintained, include the following entry in the desktop file:
\r
233 <programlisting>X-Geeqie-Keep-Fullscreen=true</programlisting>
\r
236 Any terminal output from the plugin command can be displayed with the following command:
\r
237 <programlisting>X-Geeqie-Verbose=true</programlisting>
\r
240 The plugin can be restricted to run on only certain file types, for example:
\r
241 <programlisting>X-Geeqie-File-Extensions=.jpg; .cr2</programlisting>
\r
242 The entries are case insensitive.
\r
245 <programlisting>X-Geeqie-Keep-Verbose-Multi=</programlisting>
\r
249 The key or key combination to execute this function can be set with:
\r
250 <programlisting>X-Geeqie-Hotkey=</programlisting>
\r
251 Key combinations are of the form:
\r
253 <programlisting>X-Geeqie-Hotkey=<control>y</programlisting>
\r
255 This value may conflict with a setting in
\r
256 <link linkend="GuideOptionsKeyboard" endterm="titleGuideOptionsKeyboard" />
\r