-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not give activities telepathy Tubes - they are deprecated #270
Do not give activities telepathy Tubes - they are deprecated #270
Conversation
Tubes API has been deprecated since 0.17.25 [1], which was probably around 2009. This has since been removed from telepathy, breaking collaberation. Activities are still given a text channel. They can also make their own channels by using the telepathy connection and calling CreateChannel on the requests interface. [1] http://telepathy.freedesktop.org/spec/Channel_Type_Tubes.html
RequestChannel is a flawed api and has been deprecated for a long time [1]. [1] http://telepathy.freedesktop.org/doc/book/sect.channel.requesting.html#sect.channel.requesting.requestchannel
I got the EnsureChannel (not CreateChannel, EnsureChannel is more appropriate for this) api working. See the new commit: commit 4f32695 Use EnsureChannel to create chans, not deprecated RequestChannel RequestChannel is a flawed api and has been deprecated for a long |
Telepathy tubes have been long deprecated, and since removed upstream. The api has been split into DBus tubes and steam tubes, meaning there is not replacement that could be added for the tubes.
Right, I promise that this won't become a massive working branch of everything I've ever wanted to do, but I got to add 1 more commit. Just a small obvious one.
|
35951e9 is fine for merging as is, since it is only a documentation change. What systematic testing has been done between this branch and systems using the older API? Is there a test plan on the Wiki? Has the test covered both gabble and salut? If you need a quick VM to spin up, the Ubuntu page on the Wiki has an installer, which still uses the older API and telepathy. |
I'll write up a feature page. But basically:
On Wed, Nov 18, 2015, 10:36 AM James Cameron notifications@github.com
|
Actually there seems to be a property that tells you the RequestableChannelProperties - so maybe that will allow sugar to detect Tubes support. If so, we could give the tube to the activity depending on if the platform supports it. That would only break old activities on new systems. I'll test it out. |
As far as I can tell, most of the old activities using Tubes are using them On Wed, Nov 18, 2015 at 4:26 AM, Sam notifications@github.com wrote:
Walter Bender |
Some activities use tubes to transfer files over http (Record, ImageViewer), Write use some magic to channel abiword collab, and Memorize use a dbus tube.
I don't know how they are affected by this change. |
Most of the activities you listed should be modified to use text channels On Wed, Nov 18, 2015 at 8:19 AM, Gonzalo Odiard notifications@github.com
Walter Bender |
On Thu, Nov 19, 2015, 00:19 Gonzalo Odiard notifications@github.com wrote: Some activities use tubes to transfer files over http (Record, Other activities using tubes are: [gonzalo@localhost honey]$ grep -r TUBE_TYPE * --include=*.py I don't know how they are affected by this change. I've got a patch set on my computer that adds file transfer channel support — |
Oh, my email reply didn't work @godiard. I'll try again: Write -- I'll replace it with a DBusTube |
Also, gtk2 actiities (calculate, turtle art, etc.) will need to be treated differently. They use a different toolkit and need different patches to the toolkit. |
@samdroid-apps, re: gtk2 activities: good point. Is a good incentive to continue migration to gtk3. Sadly, some activities were more difficult than others, in particular when we need make them work on F18. By example Record was not ported because the plugins needed to use the hardware acceleration in arm devices required a particular Gst version. I think Walter was blocked in some audio issue too. |
Maybe it is time to port Turtle w/o the GST code. On Wed, Nov 18, 2015 at 4:11 PM, Gonzalo Odiard notifications@github.com
Walter Bender |
Unrelated, but here is the patch for write: sugarlabs/write-activity#5 If you want to continue using dbus in your activities, you can do something like this. But for most other activities, it is probably eaiser to use something else. |
Will add a conditional setting to enable this on old hardware, closing. |
Replaces #260 - does exactly the same thing, just removes more code
Tubes API has been deprecated since 0.17.25 [1], which was probably
around 2009. This has since been removed from telepathy, breaking
collaberation.
Activities are still given a text channel. They can also make their
own channels by using the telepathy connection and calling
CreateChannel on the requests interface.
[1] http://telepathy.freedesktop.org/spec/Channel_Type_Tubes.html
Also, we use RequestChannel rather than the new and not deprecated CreateChannel. I'll make a patch for that too 😄