31/05/2009
lifesaving ROX tip, open file:// urls
Firefox has the feature of keeping links to downloaded files as urls using the file:// pattern. For example: file:///home/user/downloads/test.zip. If you choose ROX-Filer (/usr/bin/rox) to open these files you will get an error:
File doesn’t exist, or I can’t access it: file:///home/user/downloads/test.zip
One way to correct the error is to follow the instructions of http://lovingthepenguin.blogspot.com/2008/08/use-rox-filer-to-open-containing.html
Another way for Gentoo users, and much proper I guess, is to use /usr/bin/roxuri. roxuri is actually a shell script that uses the “-U” option for ROX:
-U, –url=URL open file or directory in URI form
For the non-Gentoo users, /usr/bin/roxuri is:
#!/bin/sh
exec "/usr/lib/rox/ROX-Filer/AppRun" -U "$@"
Create it and make it executable.
Go to Firefox Preferences/Applications/Content Type -> file and select /usr/bin/roxuri as the default application.
Now files from firefox downloads are handled correctly by rox which uses the proper applications to open them and containing folders open up with ROX-Filer. That means that while “file” is handled by roxuri, a .pdf will be opened by epdfview or whatever else you have chosen ROX to open pdf files with.
Both solutions work on ROX version 2.8.
Filed by kargig at 18:17 under Gentoo,Linux
Tags: bug, file://, firefox, Gentoo, Linux, rox, tip
1 Comment | 6,931 views