Get your browser to follow etqw:// links (Linux)

I managed to get both FireFox and Opera to run Enemy Territory – Quake Wars & join the server straight from the browser window.

First you need to create a little script to put it all together.

#!/bin/sh

# Script to run ETQW from a browser

ETQW=”/root/scripts/etqw.x86″

SERVER=`echo ${1} | cut -d “/” -f 3`

${ETQW} +connect ${SERVER}

You will have to change the ETQW variable to the location of your ETQW binary

Now you just need to get  Opera to run that script when you click a link.

Open Opera and Click

Tools –> Preferences –> Programs –> Add

 Put “etqw” in the protocol box

and the link to your connect script it the application box “/scripts/etconnect.sh”

Now ETQW will run when you click it from Opera

For FireFox you need to point the browser window to

about:config

you can now right click and choose New –> Boolean & set the Name to

“Network.protocol-handler.external.etqw”

& set it to true

Now Create a New String

“network.protocol-handler.app.etqw”

& Set the value to

 “/root/scripts/etconnect.sh”

Firefox Should now follow your links

Advertisements

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