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
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()
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: :GetHasDefaultH andler( )
Using vfs
return NS_OK
nsMIMEInfoUnix: :GetHasDefaultH andler( )
Using vfs
return NS_OK
nsMIMEInfoBase: :LaunchWithFile () n==useSystemDef ault thFile( )
mPreferredAction=4
mPreferredActio
calling LaunchDefaultWi
nsMIMEInfoUnix: :LaunchDefaultW ithFile( ) /tmp/test5- 5.pdf imeType( )=1
nativePath=
Using vfs
vfs->GetAppForM
app->Launch()
Whereas trying either of the text files (with or without spaces in names) gives this:
nsMIMEInfoUnix: :GetHasDefaultH andler( ) :GetHasDefaultH andler( )
Using vfs
fallback to nsMIMEInfoImpl:
nsMIMEInfoBase: :LaunchWithFile () n==useSystemDef ault thFile( )
mPreferredAction=4
mPreferredActio
calling LaunchDefaultWi
nsMIMEInfoUnix: :LaunchDefaultW ithFile( ) /tmp/test4 with space-4.txt imeType( )=1 tion=0 ation NS_ERROR_ FILE_NOT_ FOUND
nativePath=
Using vfs
vfs->GetAppForM
mDefaultApplica
!mDefaultApplic
... and...
nsMIMEInfoUnix: :GetHasDefaultH andler( ) :GetHasDefaultH andler( )
Using vfs
fallback to nsMIMEInfoImpl:
nsMIMEInfoBase: :LaunchWithFile () n==useSystemDef ault thFile( )
mPreferredAction=4
mPreferredActio
calling LaunchDefaultWi
nsMIMEInfoUnix: :LaunchDefaultW ithFile( ) /tmp/test3nospa ce-1.txt imeType( )=1 tion=0 ation NS_ERROR_ FILE_NOT_ FOUND
nativePath=
Using vfs
vfs->GetAppForM
mDefaultApplica
!mDefaultApplic