Bug 306480 - Handle browser links to Xmpp protocol (and others im protocols like aim etc)
Summary: Handle browser links to Xmpp protocol (and others im protocols like aim etc)
Status: CONFIRMED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 0.4.1
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: Future
Assignee: Telepathy Bugs
URL: http://linuxfr.org/news/organisation-...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-09 07:53 UTC by Filipe Azevedo
Modified: 2013-09-01 13:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filipe Azevedo 2012-09-09 07:53:29 UTC
Clicking im protocols links in browsers / applications does not open them with telepathy, instead kopete which is not opened start and open them.

Reproducible: Always

Steps to Reproduce:
1. Go here: http://linuxfr.org/news/organisation-d-une-chasse-aux-bogues-debian-en-ligne
2. Click the first link
Actual Results:  
Kopete start...

Expected Results:  
Handled and opened in kde telepathy
Comment 1 Daniele E. Domenichelli 2012-09-10 09:09:47 UTC
Just to clarify in case the page expires or it is changed, the link is this
xmpp:debian-fr@chat.jabberfr.org?join
Comment 2 Filipe Azevedo 2012-09-10 10:24:38 UTC
Right, this is that.
Aol AIM use aim:
But it exists also something equals for msn etc. This has to be handled too ;)

Thanks,

2012/9/10 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>:
> https://bugs.kde.org/show_bug.cgi?id=306480
>
> Daniele E. Domenichelli <daniele.domenichelli@gmail.com> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |NEW
>                  CC|                            |daniele.domenichelli@gmail.
>                    |                            |com
>      Ever confirmed|0                           |1
>
> --- Comment #1 from Daniele E. Domenichelli <daniele.domenichelli@gmail.com> ---
> Just to clarify in case the page expires or it is changed, the link is this
> xmpp:debian-fr@chat.jabberfr.org?join
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 David Edmundson 2013-03-20 02:03:37 UTC
From Kopete source code this list of protocols is:

./protocols/skype/skype.protocol
./protocols/skype/tel.protocol
./protocols/skype/callto.protocol
./protocols/oscar/aim/aim.protocol
./protocols/irc/irc.protocol
./protocols/jabber/xmpp.protocol

Skype and IRC we don't support No-one uses AIM.
Might be worth doing rakia for tel: links.

Action plan:
 - we build one application that takes a URL extract, guesses which account will be best (maybe prompting if there are two jabber accounts?) and then runs ensureTextChat(contactId) / ensureTextChatRoom(roomId) as appropriate
 
 - we install all the protocol files to launch that

 - put all this in common-internals

Code is pretty straightforward, and would a useful tool to have
Comment 4 David Edmundson 2013-03-20 02:05:05 UTC
Edit: maybe combine with ktp-paste-contact
Comment 5 Daniele E. Domenichelli 2013-03-20 10:11:13 UTC
The plan looks good, marking this for 0.7.

The only problem that I see is that the files will have the same name as kopete ones (e.g. /usr/share/kde4/services/tel.protocol) so there will be a conflict with installed files, so we should document this in packagers reference, so that they can resolve it (i.e. debian should probably use update-alternatives)

Instead of prompting if there are two jabber accounts, we could open the join chat room dialog, ktp-dialout-ui, etc. with the required fields already filled with data from the link.

I'm not sure if merging it with ktp-paste-contact is a good idea, but perhaps ktp-paste-contact could use it to resolve the names and avoid duplicate code?