On Nov 25, 2015, at 12:24 PM, René J. V. Bertin 
<[email protected]<mailto:[email protected]>> wrote:

Petroules Jake wrote:

[snipped]
The only open question is what `macLocation` domain should be returned by
QSP::TempLocation: kUserDomain, kSystemDomain or kOnAppropriateDisk . Maybe
Jake Petroules already addressed that question?

In 5.7 QStandardPaths just uses QDir::tempPath(); there are no more calls to
the Carbon File Manager.

If 5.7 still uses ObjC++ for qstandardpaths_mac, you could use
NSTemporaryDirectory() for QSP::TempLocation, and let QDir::tempPath() use that,
instead of the other way round. That would remove Thiago's critique that someone
could change $TMPDIR.

Or one could avoid QDir::tempPath() in RuntimeLocation and use
NSTemporaryDirectory instead, if tempPath() is supposed to return $TMPDIR in
order to be under user control.

R.

Feel free to take action if Thiago agrees; I have no particular opinions about 
how it's "supposed" to work.


_______________________________________________
Development mailing list
[email protected]<mailto:[email protected]>
http://lists.qt-project.org/mailman/listinfo/development

--
Jake Petroules - 
[email protected]<mailto:[email protected]>
Consulting Services Engineer - The Qt Company

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to