<sect2>
<title>Using Tracker commandline tools on the server</title>
- <para>Netatalk must be running and the commands must be executed as
- root:<screen>$ su
-# export DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/spotlight.ipc"</screen></para>
+ <para>Netatalk must be running, commands must be executed as root and
+ some environent variables must be set up (adjust PREFIX to point to
+ the base directory Netatalk in installed to):<screen>$ su
+# cat .tracker_profile
+PREFIX="/"
+export XDG_DATA_HOME="$PREFIX/var/netatalk/"
+export XDG_CACHE_HOME="$PREFIX/var/netatalk/"
+export DBUS_SESSION_BUS_ADDRESS="unix:path=$PREFIX/var/netatalk/spotlight.ipc"
+# . .tracker_profile
+#
+</screen></para>
<para>When using Tracker from OpenCSW you must also update your
PATH:<screen># export PATH=/opt/csw/bin:$PATH</screen></para>
<para>Gnome dconf settings are per-user settings, so, as Netatalk runs
the Tracker processes as root, the settings are stored in the root user
- context and reading or changing these settings must be perfomed as root.
- Netatalk must alo be running:<screen>$ su
-# export DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/spotlight.ipc"</screen></para>
-
- <para>When using Tracker from OpenCSW you must also update your
- PATH:<screen># export PATH=/opt/csw/bin:$PATH</screen></para>
+ context and reading or changing these settings must be perfomed as root
+ and Netatalk must be running (and again the enviroment must be set up
+ as shown above).</para>
<para><screen># gsettings list-recursively | grep Tracker
org.freedesktop.Tracker.Writeback verbosity 'debug'
<sect2>
<title>Supported metadata attributes</title>
- <para>The following list is the complete set of supported metadata
- attributes in Tracker SPARQL search queries</para>
+ <para>The following table lists the supported Spotlight metadata
+ attributes</para>
<table>
- <title>Tracker SPARQL</title>
+ <title>Supported Spotlight metadata attributes</title>
<tgroup cols="2">
<thead>
</tgroup>
</table>
- <para>The following list is the complete set of supported metadata
- attributes in Tracker RDF search queries:<table>
- <title>Tracker RDF</title>
-
- <tgroup cols="2">
- <thead>
- <row>
- <entry align="center">Description</entry>
-
- <entry align="center">Spotlight Key</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>Name</entry>
-
- <entry>kMDItemDisplayName, kMDItemFSName</entry>
- </row>
-
- <row>
- <entry>Document content (full text search)</entry>
-
- <entry>kMDItemTextContent</entry>
- </row>
-
- <row>
- <entry>File type</entry>
-
- <entry>_kMDItemGroupId, kMDItemContentTypeTree</entry>
- </row>
-
- <row>
- <entry>File modification date</entry>
-
- <entry>kMDItemFSContentChangeDate,
- kMDItemContentModificationDate,
- kMDItemAttributeChangeDate</entry>
- </row>
-
- <row>
- <entry>Content Creation date</entry>
-
- <entry>kMDItemContentCreationDate</entry>
- </row>
-
- <row>
- <entry>The author, or authors, of the contents of the
- file</entry>
-
- <entry>kMDItemAuthors, kMDItemCreator</entry>
- </row>
-
- <row>
- <entry>The name of the country where the item was
- created</entry>
-
- <entry>kMDItemCountry</entry>
- </row>
-
- <row>
- <entry>Duration</entry>
-
- <entry>kMDItemDurationSeconds</entry>
- </row>
-
- <row>
- <entry>Number of pages</entry>
-
- <entry>kMDItemNumberOfPages</entry>
- </row>
-
- <row>
- <entry>Document title</entry>
-
- <entry>kMDItemTitle</entry>
- </row>
-
- <row>
- <entry>The width, in pixels, of the contents. For example, the
- image width or the video frame width</entry>
-
- <entry>kMDItemPixelWidth</entry>
- </row>
-
- <row>
- <entry>The height, in pixels, of the contents. For example,
- the image height or the video frame height</entry>
-
- <entry>kMDItemPixelHeight</entry>
- </row>
-
- <row>
- <entry>Focal length of the lens, in millimeters</entry>
-
- <entry>kMDItemFocalLength</entry>
- </row>
-
- <row>
- <entry>ISO speed</entry>
-
- <entry>kMDItemISOSpeed</entry>
- </row>
-
- <row>
- <entry>Orientation of the document. Possible values are 0
- (landscape) and 1 (portrait)</entry>
-
- <entry>kMDItemOrientation</entry>
- </row>
-
- <row>
- <entry>Exposure time, in seconds</entry>
-
- <entry>kMDItemExposureTimeSeconds</entry>
- </row>
-
- <row>
- <entry>The musical genre of the song or composition</entry>
-
- <entry>kMDItemMusicalGenre</entry>
- </row>
- </tbody>
- </tgroup>
- </table></para>
</sect2>
<sect2>