Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDesktopServices.openUrl fails to open local file on Ubuntu
Forum Updated to NodeBB v4.3 + New Features

QDesktopServices.openUrl fails to open local file on Ubuntu

Scheduled Pinned Locked Moved Solved General and Desktop
21 Posts 5 Posters 4.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    efremdan1
    wrote on 12 Mar 2021, 18:06 last edited by
    #21

    @eyllanesc said in QDesktopServices.openUrl fails to open local file on Ubuntu:

    @efremdan1 I don't recommend using relative paths as they will depend on where the "current location" is. In your case it seems that you are executing the script of the form: python script.py but if at another time you execute it as python foo/script.py it may fail. Relative paths are one of the most common causes of silent errors that are the worst at debugging.

    You're indeed correct. Thank you.

    1 Reply Last reply
    0

    21/21

    12 Mar 2021, 18:06

    • Login

    • Login or register to search.
    21 out of 21
    • First post
      21/21
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved