2

Is there a way to make Firefox accept bash commands to handle an application protocol?

Currently, I am opening irc:// links in XChat from Firefox via a shell script as described in this answer. I would like to eliminate the script step and directly move on to opening the link in XChat.

Oxwivi
  • 18,499

2 Answers2

1

You said you wanted to skip the shell script part. Basically you can execute the content of every shell skript like this:

bash -c "contents of shell script in one line"

In your case it would look like this:

bash -c "xchat --existing --url=\"%s\""

Since xchat is an executable independet of bash you should be able to start xchat directly:

/usr/bin/xchat --existing --url="%s"

Use which xchat to find out where xchat is installed on your system and replace the /usr/bin part if it is installed somewhere else.

Lesmana
  • 18,754
0

Please see this old post, it helped other people before: http://www.linuxquestions.org/questions/linux-software-2/how-to-register-irc-protocol-to-firefox-browser-283057/

P.S.: read the entire thread.