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. QStandardPaths mac appstore

QStandardPaths mac appstore

Scheduled Pinned Locked Moved Unsolved General and Desktop
qstandardpathsmac app store
4 Posts 2 Posters 486 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.
  • K Offline
    K Offline
    Kudaiv
    wrote on 19 Nov 2019, 13:47 last edited by
    #1

    Hello! I have experienced some behaviour of QStandardPaths on mac in a sandbox environment.
    Let's look at the QStandardPaths::MoviesLocation

    not sandbox - QStandardPaths::standardLocations(QStandardPaths::MoviesLocation) returns /Users/$USER/Movies
    sanbox - QStandardPaths::standardLocations(QStandardPaths::MoviesLocation) returns /Users/$USER/Library/Containers/$SOME_APPLICATION/Data/Movies

    It doesn't seem right.
    But i have found commit https://github.com/qt/qtbase/commit/14960f52276d82600913b52b0ebbf4d5372debe2
    Can you clear this thing for me, please.
    Thank you in advance.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 19 Nov 2019, 22:45 last edited by
      #2

      Hi,

      What is your issue exactly ?
      IIRC, sandboxed applications don't have the same level of access to the system's filesystem.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kudaiv
        wrote on 20 Nov 2019, 04:51 last edited by
        #3

        Thank for you answer, i get that sandboxed application's have a different access level, but what if want to give a user ability to work with the Movies Directory /Users/$USER/Movies, i gave the permission in the entitlement file, but then i am trying to get the standard user's Movies location from QStandardPaths and it isn't user's location... I'm confused cause it worked right in Qt 5.6... I am trying to understand - is it how it supposed to be or this is a bug....

        1 Reply Last reply
        1
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 Nov 2019, 20:15 last edited by
          #4

          That might be an oversight. I suggest you take a look at the bug report system to see if there's something related. If not please open a new report providing the details you have.

          Also, please provide a minimal compilable example that shows that behaviour (entitlement, etc.) it will help a lot getting this issue sorted.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          4/4

          21 Nov 2019, 20:15

          • Login

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