Bug 70173 - Adding clipboard uri scheme as exception in fts indexer
Summary: Adding clipboard uri scheme as exception in fts indexer
Status: RESOLVED MOVED
Alias: None
Product: Zeitgeist
Classification: Unclassified
Component: Extensions (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: zeitgeist-bugs@lists.freedesktop.org
QA Contact: zeitgeist-bugs@lists.freedesktop.org
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-05 18:21 UTC by Oliver Sauder
Modified: 2018-05-31 09:12 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Adding clipboard uri scheme as exception in fts indexer (976 bytes, patch)
2014-04-12 08:36 UTC, Oliver Sauder
Details | Splinter Review

Description Oliver Sauder 2013-10-05 18:21:46 UTC
I am working on a zeitgeist integration for a clipboard manager (diodon). For this I have been using the uri "clipboard://[sha1 checksum of content]" to identify the different clipboard contents.

Unfortunatetly there is a uri filter regex in fts which excludes all not defined uris. As none of those uri really fit for clipboard managers did I wanted to ask whether it would be possible to add clipboard scheme as an exception as well? 

Have a look here https://bazaar.launchpad.net/~diodon-team/diodon/zeitgeist-storage/view/head:/libdiodon/zeitgeist-clipboard-storage.vala to see how I currently store the clipboard manager events.

Thanks,
Oliver
Comment 1 Oliver Sauder 2014-04-12 08:36:25 UTC
Created attachment 97251 [details] [review]
Adding clipboard uri scheme as exception in fts indexer

I for now have a workaround to change my uris to dav before they are added to Zeitgeist and changing them back again to clipboard when reading events from Zeitgeist.

However this is a bit of a hack and has draw backs like how the events show up in other application like Activity Manager etc.

I have attached a patch which adds clipboard as an exception so it will be indexed in fts as well.

As discussed on IRC before have I tried to make this uri as general as possible so it can be easy usable by other clipboard managers as well. Also the uri clipboard is going to be registered so that means when a clipboard uri is being activated in e.g. Activity Manager the referenced content will be copied to the clipboard.

It would be great if this patch could be applied.
Comment 2 GitLab Migration User 2018-05-31 09:12:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/zeitgeist/zeitgeist/issues/11.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.