issue390: shell-command-on-file fails on local files

Priority: bug Status: unread
Messages
msg978 (view) Author: edkademan Date: 2012-01-23.15:49:16
If you visit a local file with conkeror---that is, a file with url
something like file:///home/ejk/doc.html---and then try to run the
command `shell-command-on-file' on a link there that also has the
`file:' protocol in its url the shell command will not execute.

I can get things to work by deleting the following lines from the
function `download-as-temporary' in the conkeror source:

    // If it is local file, there is no need to download it
    if (uri.scheme == "file") {
        let file = uri.QueryInterface(Ci.nsIFileURL).file;

        yield co_return([file, false /* not temporary */]);
    }

Why do I want to access local files in this roundabout way?  It turns
out to be convenient when I have html documentation on my local
machine that in turn links to pdf or other files that I want to view
in another program.
History
Date User Action Args
2012-01-23 15:49:16edkademancreate