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

QDesktopServices::openUrl, under snap does not open local files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.14.0
    • Fix Version/s: None
    • Component/s: Extras: X11, QPA: X11/XCB
    • Labels:
      None
    • Environment:
      Ubuntu 18.04
    • Platform/s:
      Linux/X11

      Description

      As the summary says, when running an app that was snapped, when you tell QDesktopServices::openUrl to open a local file (e.g ~/Documents/myDocument.pdf), nothing happens.

      Opening a webpage works fine.

      Maybe I'm missing something in snapcraft.yaml... In this case it should be documented.

      I could reproduce running the attached project on Ubuntu 18.04

      • compile in release (target folder build-release)
      • open a terminal and run the script snapcreator/create_snap.sh to snap and prime the app
      • to test outside snap, execute this command:
        <ProjectDir>../output/desktopservicesbug/usr/bin/desktopservicesbug.sh
      • to test from snap, execute this command:
        desktopservicesbug

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jirauser38076 user-4909d (Inactive)
              PM Owner:
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes