QStandardPaths mac appstore
-
Hello! I have experienced some behaviour of QStandardPaths on mac in a sandbox environment.
Let's look at the QStandardPaths::MoviesLocationnot sandbox - QStandardPaths::standardLocations(QStandardPaths::MoviesLocation) returns /Users/$USER/Movies
sanbox - QStandardPaths::standardLocations(QStandardPaths::MoviesLocation) returns /Users/$USER/Library/Containers/$SOME_APPLICATION/Data/MoviesIt 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. -
Hi,
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....
-
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.