Comment 7 for bug 239952

Revision history for this message
TJ (tj) wrote :

This is a problem caused by the interaction of xulrunner and Gnome VFS. Using the test files in Savvas' thread in the forums (http://ubuntuforums.org/showthread.php?p=5369513) a *successful* handling of the PDF file looks like this:

nsMIMEInfoUnix::GetHasDefaultHandler()
Using vfs
return NS_OK

nsMIMEInfoUnix::GetHasDefaultHandler()
Using vfs
return NS_OK

nsMIMEInfoBase::LaunchWithFile()
mPreferredAction=4
mPreferredAction==useSystemDefault
calling LaunchDefaultWithFile()

nsMIMEInfoUnix::LaunchDefaultWithFile()
nativePath=/tmp/test5-5.pdf
Using vfs
vfs->GetAppForMimeType()=1
app->Launch()

Whereas trying either of the text files (with or without spaces in names) gives this:

nsMIMEInfoUnix::GetHasDefaultHandler()
Using vfs
fallback to nsMIMEInfoImpl::GetHasDefaultHandler()

nsMIMEInfoBase::LaunchWithFile()
mPreferredAction=4
mPreferredAction==useSystemDefault
calling LaunchDefaultWithFile()

nsMIMEInfoUnix::LaunchDefaultWithFile()
nativePath=/tmp/test4 with space-4.txt
Using vfs
vfs->GetAppForMimeType()=1
mDefaultApplication=0
!mDefaultApplication NS_ERROR_FILE_NOT_FOUND

... and...

nsMIMEInfoUnix::GetHasDefaultHandler()
Using vfs
fallback to nsMIMEInfoImpl::GetHasDefaultHandler()

nsMIMEInfoBase::LaunchWithFile()
mPreferredAction=4
mPreferredAction==useSystemDefault
calling LaunchDefaultWithFile()

nsMIMEInfoUnix::LaunchDefaultWithFile()
nativePath=/tmp/test3nospace-1.txt
Using vfs
vfs->GetAppForMimeType()=1
mDefaultApplication=0
!mDefaultApplication NS_ERROR_FILE_NOT_FOUND