Open html file in Firefox
Can I open html file gracefully in 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
2 years 8 weeks ago
2 years 17 weeks ago
3 years 1 week ago
3 years 5 weeks ago
3 years 9 weeks ago
3 years 10 weeks ago
3 years 10 weeks ago
3 years 14 weeks ago
3 years 14 weeks ago
3 years 15 weeks ago