#!/bin/sh # ROX-Fox -- script for "Open Containing Folder" menu in the # Firefox download manager that makes it possible to # use ROX-Filer - unlike Konqueror and Nautilus, ROX # doesn't recognize the file:// URI. # Copyright (C) 2009 anrxc # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # With FF < 3.1 you can use about:config : # network.protocol-handler.app.file ~/code/bash/mozilla/ROX-Fox.sh # network.protocol-handler.expose.file true # network.protocol-handler.external.file true # # With FF >= 3.1 you can use the Applications preferences dialog: # Content type: file Action: Use ROX-Fox.sh # Tip: Firefox can also use ROX file associations, which is useful # with Firefox versions prior to 3.1 where "Applications" dialog # is completely broken. location=`echo ${1#file://} | sed 's/%20/ /g'` rox "$location"