Proposed draft for the thumbnail D-Bus specification
patrys at pld-linux.org
Sun Sep 7 06:45:58 PDT 2008
On Sun, Sep 7, 2008 at 3:25 PM, Mikkel Kamstrup Erlandsen
<mikkel.kamstrup at gmail.com> wrote:
> 2008/9/7 Patryk Zawadzki <patrys at pld-linux.org>:
>> Wouldn't it make more sense to unqueue single jobs by URI or by URI
>> prefix (say I want to cancel indexing the directory I am no longer
>> monitoring)? Using ints here would allow one buggy process to
>> accidentally break other processes (say a bug leads to an
>> uninitialized gint which matches a real queue ID).
> Well. The server could keep track of handle<->dbus_sender_id and
> return and error if dbus_sender_id has never queued the given handle.
> In fact the server would need to keep track of this anyway so that it
> can abort thumbnailing jobs when the client exits the bus. I don't
> know if this should be speced or not though, as it just an
> optimization in the server really.
More likely dbus_sender_id <-> garray of URI hashes as I imagine it's
possible for two clients to ask for the same ID and I think we
shouldn't generate the same thumbnail twice.
More information about the xdg