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>Disabled</guilabel>
\r
35 <para>If the checkbox is ticked, the plugin will not be displayed in Geeqie menus.</para>
\r
40 <guilabel>Name</guilabel>
\r
43 <para>Plugin name as specified in desktop file, and is the name displayed in menus.</para>
\r
48 <guilabel>Hidden</guilabel>
\r
52 <emphasis>Hidden</emphasis>
\r
53 for one of these reasons:
\r
56 the desktop file contains
\r
57 <literal>Hidden=TRUE</literal>
\r
59 <literal>NoDisplay=TRUE</literal>
\r
62 <literal>TryExec</literal>
\r
63 binary was not found
\r
66 <literal>MimeType</literal>
\r
67 list does not contain images
\r
70 <literal>MimeType</literal>
\r
72 <literal>Categories</literal>
\r
74 <literal>X-Geeqie</literal>
\r
80 <variablelist spacing="compact">
\r
83 <guilabel>Desktop file</guilabel>
\r
86 Name of the desktop file, used as an identifier in
\r
87 <link linkend="GuideOptionsKeyboard" endterm="titleGuideOptionsKeyboard" />
\r
93 <guilabel>Path</guilabel>
\r
95 <listitem>Full path to the desktop file. Desktop files in user directories override the system ones with the same name.</listitem>
\r
99 <section id="Addingnewplugin">
\r
100 <title>Adding new plugin</title>
\r
105 <inlinegraphic fileref="document-new.png" />
\r
110 opens a text editor with a desktop file template. You must amend the line
\r
111 <programlisting>Exec=command %f</programlisting>
\r
112 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
116 <section id="Modifyinganexistingplugin">
\r
117 <title>Modifying an existing plugin</title>
\r
122 <inlinegraphic fileref="gtk-edit.png" />
\r
127 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
130 <section id="Deletingaplugin">
\r
131 <title>Deleting a plugin</title>
\r
136 <inlinegraphic fileref="edit-delete.png" />
\r
141 can delete user writable desktop files. System desktop files can't be deleted directly, but it is possible to edit them and set
\r
142 <literal>Hidden=TRUE</literal>
\r
146 <section id="Specialplugins">
\r
147 <title>Special plugins</title>
\r
148 <para>A desktop file with one of the following names has a special function. It will replace the corresponding internal command.</para>
\r
150 <programlisting xml:space="preserve">
\r
151 geeqie-copy-command.desktop
\r
152 geeqie-move-command.desktop
\r
153 geeqie-rename-command.desktop
\r
154 geeqie-delete-command.desktop
\r
155 geeqie-folder-command.desktop
\r
158 <para>This can be used for example for a custom trash command or for manipulation of files under version control.</para>
\r
160 <section id="Geeqieextensions">
\r
161 <title>Geeqie desktop file keys</title>
\r
163 A desktop file for use only by Geeqie should have the following entries:
\r
165 Categories=X-Geeqie;
\r
166 OnlyShowIn=X-Geeqie;
\r
170 A menu path where the plugin will appear, instead of in the default
\r
172 <guimenu>Plugins</guimenu>
\r
174 , can be set by including:
\r
175 <programlisting>X-Geeqie-Menu-Path=<FileMenuPath></programlisting>
\r
179 <emphasis>FileMenuPath</emphasis>
\r
181 <programlisting xml:space="preserve">
\r
183 FileMenu/OpenSection
\r
184 FileMenu/SearchSection
\r
185 FileMenu/PrintSection
\r
186 FileMenu/FileOpsSection
\r
187 FileMenu/QuitSection
\r
190 SelectMenu/SelectSection
\r
191 SelectMenu/ClipboardSection
\r
192 SelectMenu/MarksSection
\r
194 EditMenu/EditSection
\r
195 EditMenu/OrientationMenu
\r
196 EditMenu/RatingMenu
\r
197 EditMenu/PropertiesSection
\r
198 EditMenu/PreferencesSection
\r
201 ViewMenu/WindowSection
\r
202 ViewMenu/FileDirMenu
\r
203 ViewMenu/FileDirMenu/FolderSection
\r
204 ViewMenu/FileDirMenu/ListSection
\r
205 ViewMenu/DirSection
\r
207 ViewMenu/ZoomMenu/ConnectZoomMenu
\r
209 ViewMenu/StereoMenu
\r
211 ViewMenu/OverlayMenu
\r
212 ViewMenu/ViewSection
\r
213 ViewMenu/ToolsSection
\r
214 ViewMenu/SlideShowSection
\r
216 HelpMenu/HelpSection
\r
220 If you want a plugin to use a user-definable path, the following entry must be made in the desktop file:
\r
221 <programlisting>X-Geeqie-Filter=true</programlisting>
\r
224 Desktop files containing this entry will be displayed in the Folder action list of the
\r
225 <link linkend="CopyMoveandLink" endterm="titleGuideSidebarsSortManager" />
\r
226 . The path of the bookmark clicked will be used by the desktop file.
\r
228 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
229 <programlisting xml:space="preserve">
\r
232 destination=$(geeqie --remote --get-destination:"$file")
\r
234 echo "$destination"
\r
235 echo $GEEQIE_DESTINATION
\r
240 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
241 <programlisting>X-Geeqie-Keep-Fullscreen=true</programlisting>
\r
244 Any terminal output from the plugin command can be displayed with the following command:
\r
245 <programlisting>X-Geeqie-Verbose=true</programlisting>
\r
248 The plugin can be restricted to run on only certain file types, for example:
\r
249 <programlisting>X-Geeqie-File-Extensions=.jpg; .cr2</programlisting>
\r
250 The entries are case insensitive.
\r
253 <programlisting>X-Geeqie-Keep-Verbose-Multi=</programlisting>
\r
257 The key or key combination to execute this function can be set with:
\r
258 <programlisting>X-Geeqie-Hotkey=</programlisting>
\r
259 Key combinations are of the form:
\r
261 <programlisting>X-Geeqie-Hotkey=<control>y</programlisting>
\r
263 This value may conflict with a setting in
\r
264 <link linkend="GuideOptionsKeyboard" endterm="titleGuideOptionsKeyboard" />
\r