Open html file in Firefox
Can I open html file gracefully in
Mozilla Firefox? Even in new tabs everytime?
Mozilla Firefox? Even in new tabs everytime?
Sure. One way is to put the script below into (for example) ~/bin. Name it 'Firefox' or something and make it executable. Check if that /opt install path applies to your system.
#!/bin/bash
FIREFOX="/opt/firefox/firefox"
if [ -x "$FIREFOX" ]; then
"$FIREFOX" "$1" || "$FIREFOX" -remote "OpenURL($1, new-tab)"
fi
Then right click on some HTML file in ROX-Filer and choose Set Run Action. Drag the `Firefox' script you created into the box, and you're set.
Here's another firefox script, make sure to change FIREFOXDIR to the right directory:
#!/bin/sh
FIREFOXDIR=/Programs/FireFox/Current
REMOTE="$FIREFOXDIR/mozilla-xremote-client -a firefox"
if ( $REMOTE "ping()" 2>/dev/null); then
exec $REMOTE "openurl($1,new-tab)"
else
exec firefox "$1"
fi
»
- Printer-friendly version
- Login to post comments

Recent comments
1 year 13 weeks ago
1 year 23 weeks ago
2 years 7 weeks ago
2 years 11 weeks ago
2 years 14 weeks ago
2 years 16 weeks ago
2 years 16 weeks ago
2 years 20 weeks ago
2 years 20 weeks ago
2 years 20 weeks ago