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

QDesktopServices::openUrl prints "This tool has been deprecated"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux

      Description

      Calling

      QDesktopServices::openUrl(…);
      

      prints "This tool has been deprecated, use 'gio open' instead. See 'gio help open' for more info."

      gnome-desktop 1:3.24.1-1

      I just realized that this is the output of xdg-open:

      $ xdg-open documents/
      This tool has been deprecated, use 'gio open' instead.
      See 'gio help open' for more info.
      

      However xdg-open calls

      gvfs-open documents/
      This tool has been deprecated, use 'gio open' instead.
      See 'gio help open' for more info.
      

      which at least opens the directory so it is definitively a fault of xdg-open.

      However I decided to post since you may want to hotfix it before xdg-open fixes it.

      After further investigations I found out that the call still works on files. However on directories the call randomly silently fails.

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            manuelschneid3r Manuel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes