I want to open irc://
links in pidgin from chromium.
When i am logged-in to a irc server(irc.freenode.net
) running purple-url-handler irc://irc.freenode.net/#ubuntu
in terminal works fine.
But when i click the same link in chromium (which uses xdg-open
to open irc://
links) it does nothing. Any idea how to make this happen?
I am using Ubuntu 12.04.
Best Answer
OK I found it!So I will answer here.
FOR UBUNTU(>=11.04)
Gconf settings(
/desktop/gnome/url-handlers
) didn't do anything since as of Natty the file-open functionality is handled bygvfs-open
, which doesn't use gconf settings. Rather, gvfs-open looks at the ".desktop" files bundled with each application to determine what file types can be handled.if it is not installed, run :In all x-scheme handler urls( like irc://, xmpp://, sip://, aim://) are handled by purple-url-handler.We are going to create a desktop file for it.
& put following content in it:
Now to make irc:// links open with purple-url-handler run :
This informator is stored in ~/.local/share/applications/mimeapps.list.
Now when you click any irc:// link in chromium for the first time, the following prompt will appear:
Select remember my choice & launch application. If you are already logged in it will open the room in pidgin.
DONE!