Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.6.3
-
None
-
Debian stable.
tf@hostname ~ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.3 (squeeze)
Release: 6.0.3
Codename: squeeze
Description
QDesktopServices::openUrl appears to use gvfs-open under the hood, as I get a related error message when I use it incorrectly. For example, here's what happens when I try to open a PDF with a bad filename:
gvfs-open: file:///home/tfogal/dev/imagevis3d/Build/file/ImageVis3D.pdf: error opening location: Error stating file '/home/tfogal/dev/imagevis3d/Build/file:/ImageVis3D.pdf': No such file or directory
If the filename is wrong, of course gvfs-open does not manage to open the file. If the filename is correct, then the PDF pops up in xpdf (on my system). However, in either case – the return value of the function is true. That is, the function does not detect that the PDF failed to open.