This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

1. Documents: Removable devices support

By FelipeBorges

My Task is to make Documents able to manage removable devices. My work is basically divided into two main tasks: back-end side (Tracker) and front-end side (Documents UI). I am mentored by CosimoCecchi.

1.1. Back-end (Tracker)

1.1.1. What was proposed?

Documents uses Tracker to read and store information about document files. Currently, Tracker uses a GSetting which flags whether removable devices are indexable. Since it's not desirable to have Tracker indexing removable devices globally*, Tracker has to index removable devices on an application basis (on-demand).

1.1.1.0.1. * most distributions ships Tracker with the removable-devices GSetting off.

1.1.2. What was achieved?

I've created a new Tracker API method (IndexFileForProcess) which is a mechanism that allows Tracker to index files on a client-application basis. It receives a request-to-index a file/directory/mount-point and watches the bus name of the calling application. It stops the indexing process when no bus names are associated to the file.

Source: http://github.com/felipeborges/tracker

1.2. Front-end (Documents UI)

1.2.1. What was proposed?

On the top side, we want Documents UI capable of managing operations on removable devices, such as importing and exporting documents.

1.2.2. What was achieved?

Documents, now, loads plugged-in removable devices, uses the Tracker API method that I've created to index them, and creates a Device Collection into the overview containing documents inside the device.

Source: http://github.com/felipeborges/tracker

1.3. Blog reports

1.4. What was left behind


2024-10-23 11:28