Summary: | Add a file transfer helper | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Jonny Lamb <jonny.lamb> |
Component: | tp-glib | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED MOVED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://cgit.collabora.com/git/user/wjt/telepathy-glib/log/?h=ft-helper | ||
Whiteboard: | libreoffice-tubes | ||
i915 platform: | i915 features: |
Description
Jonny Lamb
2011-11-14 03:37:02 UTC
Something I don't like here is that the process doing the channel request must be also sending the file data and do the hashing, right? It's a bit annoying in the case of a call-ui having an extra send-file action; if the call ends we could want to terminate call-ui process but still have the FT running, no? So I'm wondering if it makes sense to request a FT channel with URI set (or even not that) and then rely on the handler to do hashing and ProvideFile call (and even popup the file chooser to select which file to send in case URI is not set at request). Does this makes sense or am I on crack? Motivation: call-ui is prone to crashes, I don't want to have my FT to fail because the clutter/X/driver/gst failed at something. (In reply to comment #1) > Something I don't like here is that the process doing the channel request must > be also sending the file data and do the hashing, right? The hash properties are immutable and requestable so the process doing the channel request must also do the hashing... that's just a spec limitation. I've opened bug #46783 in order to fix this for 1.0 but until then, it's just a fact. This helper thing was designed with this limitation in mind though. > So I'm wondering if it makes sense to request a FT channel with URI set (or > even not that) and then rely on the handler to do hashing and ProvideFile call > (and even popup the file chooser to select which file to send in case URI is > not set at request). Well unless I'm misunderstanding, this can't be done yet; see bug #46783 again. As a starting point, I got EmpathyFTHandler building inside tp-glib. See attached branch. I then copied and pasted it into the feature/tubes2 branch of LibreOffice in the meantime… it'd be nice to drop that. http://cgit.collabora.com/git/user/wjt/telepathy-glib/commit/?h=ft-helper&id=4dbbe906ab320f201bf1d63cdc7096ae0215a85b and http://cgit.collabora.com/git/user/wjt/telepathy-glib/commit/?h=ft-helper&id=083236e06b092f1ab0b5dc0cd6fcb930feb1a54b look good to me. How far are we to merge the 'next' spec branch to master? Maybe we should wait for bug #46783 to be fixed first as that will change this helper API. Or maybe we should just implement it for now and changes its API later; don't know. -- 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/telepathy/telepathy-glib/issues/79. |
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.