Important: Please read the Qt Code of Conduct -

QStandardPaths mac appstore

  • 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
    Can you clear this thing for me, please.
    Thank you in advance.

  • Lifetime Qt Champion


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

  • 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....

  • Lifetime Qt Champion

    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.