Do

Comment 3 for bug 349203

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: [Bug 349203] Re: typing a path to a file is different to selecting the file from the results window

On Tue, 2009-07-28 at 01:24 +0000, Joe Soulbringer wrote:
> This bugs should be marked unfixed and expanded to note that Do simply
> gets the file type wrong too often.
>
> I'm seeing that Do sometimes has the default action of "running" a
> ".pdf" file, which does nothing and sometimes the default action of
> opening a different ".pdf" file, which successfully opens it in the PDF
> reader.
>
> I'm investigating this behavior...
>
This is almost certainly because the pdf that Do tries to "run" is
marked as executable. Do trusts that this means that it can be run, and
since "run" is almost always the most used action, that's the default
action that gets picked.

There really isn't any good way for Do to determine that the pdf marked
as executable can't actually be executed except by attempting to run it,
something that won't be a particularly good idea if it turns out that
you _can_ run it - simply browsing files would start lots of
applications!