D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] How to set protocol associations?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 20 March 2004 13:15, Neil Williams wrote:

It's not in KDE Control Center on my box - what I did find is the
protocol list in kinfocenter. irc:// isn't listed so maybe it's a
missing package - as I have no IRC clients configured and no non-default
IRC related packages.

This bugs me - there must be a simple way to do this....

My evil hacker instincts led to;

/usr/bin/kircservice
#!/bin/bash
#
URL=$1
CHANNEL=`(echo $URL | cut -f2 -d"#")`
SERVER=`(echo $URL | cut -f3 -d"/")`
ksirc --nick $USER --server $SERVER --channel \#$CHANNEL

~srw/.kde/share/services/irc.protocol
[Protocol]
exec=kircservice %u
protocol=irc
input=none
output=none
helper=true
listing=
reading=false
writing=false
makedir=false
deleting=false

Which seems to work, and doesn't even require restarting kde - but I'm sure 
there must be a sensible way of doing this.

-----BEGIN PGP SIGNATURE-----
Comment: Encryption...is a powerful defensive weapon for free people.

iD8DBQFAXdDKGFXfHI9FVgYRArf3AJ9XnDgiN8sCAcQEh7olHfDnGqXvcQCgkUK+
K9QNVLyLTfvmmPJ9H7Gm9KE=
=0rqO
-----END PGP SIGNATURE-----


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.



Lynx friendly