Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23123

gvfs-open failure not detected by QDesktopServices::openUrl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.6.3
    • D-Bus
    • None

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            tfogal tom fogal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes