I want to open channels in servers specified in irc:// links in XChat, but directly pointing to XChat binary (in Firefox) did not work - the window to choose servers appears as usual. I don't know how to associate irc:// links with XChat in Chromium.
|
One possible solution is to make a little script to open the irc chanel in an existing xchat, and pass that to Firefox. For example - make a file in
Add executable permission to the script:
Now using the menu option |
||||
|
|
|
Fossfreedom's method works great, but it is a per-app solution. Granted, firefox/chromium is the most common use case, but it is easy to make a system-wide solution so it would automatically works for all apps automatically, with no need to configure each one. The solution is to create an alternative Copy xchat launcher so we can edit it:
Edit its contents, adding
Now install the file. This can be done for your current user only or for all users (just prepend the command with
And that's it! You can try results immediately, in Firefox, Chromium, or any application. Let's test it in terminal:
Ta-da! |
|||
|
|
xchat --existing --url=$@could be converted to a Terminal command... I don't want to create a script. Too much of a chore to do it every time I format the PC. – Oxwivi Aug 4 '11 at 9:07bash -c "xchat --existing --url=$@"? – fossfreedom♦ Aug 4 '11 at 9:18