Open irc links into xchat in kubuntu with kde

You need to put a file named xchat.protocol in /usr/share/kde4/services that contains:

[Protocol]
exec=xchat --existing --url=%u
protocol=irc
input=none
output=none
helper=true
listing=false
reading=false
writing=false
makedir=false
deleting=false
X-Ubuntu-Gettext-Domain=desktop_xchat

It can works for other irc clients, just change the name to yours and maybe a little bit the command line ūüôā

In fact, if you have something that use xdg-open to try to open a link or an url, it will look up the protocol or mime type and try to find if there is any services attached to the protocol or applications to the mime type. An application usually describes the mime types it can read in its .desktop file (same folder as the protocol files).

Advertisements
This entry was posted in Uncategorized and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s