In Ubuntu, we've applied the attached patch to achieve the following:

  * debian/patches/76_fix_gfvs_mime_handler.patch:
    - Make it possible to open irc:// URI's via gvfs.

We thought you might be interested in doing the same.
## Description: Make it possible to open irc:// URI's via gvfs.
## Origin/Author: Shawn Landden <shawnland...@gmail.com> and
## Daniel Gimpelevich <dan...@gimpelevich.san-francisco.ca.us>
## Bug: https://bugs.launchpad.net/ubuntu/+source/xchat/+bug/933822
Index: xchat-2.8.8/xchat.desktop
===================================================================
--- xchat-2.8.8.orig/xchat.desktop	2010-05-30 08:08:48.000000000 +0200
+++ xchat-2.8.8/xchat.desktop	2012-12-03 19:18:00.000000000 +0100
@@ -15,9 +15,10 @@
 Comment[ro]=Client de IRC
 Comment[zh_TW]=X-Chat 聊天程式
 Comment=Chat with other people using Internet Relay Chat
-Exec=xchat
+Exec=sh -c "xchat --existing --url %U || exec xchat"
 Icon=xchat
 Terminal=false
 Type=Application
 Categories=Network;
 StartupNotify=true
+MimeType=x-scheme-handler/irc;x-scheme-handler/ircs;

Reply via email to