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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.14.0
    • Extras: X11, QPA: X11/XCB
    • None
    • Ubuntu 18.04
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: