Pages

September 14, 2009

Use ROX-Filer to open containing folders in Firefox/Iceweasel (Part 2)

About a year ago, I wrote up a method for getting Firefox/Iceweasel to open files in ROX-filer in Debian Etch. Recently, Into.The.Void wrote up a much more sane way to accomplish the same thing in Gentoo that works with more recent versions of ROX.

ROX's -U option that Into.The.Void uses is not available in the version of ROX that's in Etch, but it is available in Lenny. (You have updated to Lenny, haven't you?) The bad news is that, the file used in Into.The.Void's script, /usr/lib/rox/ROX-Filer/AppRun, is not part of the ROX package in Lenny. But the good news is that it is trivially simple to change the script so that it does work in Lenny.

So, here is Into.The.Void's method adapted to Lenny:

As root, make a new file /usr/local/bin/roxuri and copy the following into it:
#!/bin/sh
exec rox -U "$@"
Make the new file executable for all by using ROX or by issuing the command:

chmod a+x /usr/local/bin/roxuri

Open Firefox/Iceweaswel and set it to use the script to open files with Edit -> Preferences -> Applications: file and selecting /usr/local/bin/roxuri

Enjoy.

I don't know if this will work with Ubuntu because for some strange reason Ubuntu's version of ROX in 9.04 is quite a bit older than what ships in Lenny.

No comments: