[Development] glib's and Qt's RuntimeLocation [OS X]

Petroules Jake Jake.Petroules at theqtcompany.com
Wed Nov 25 21:29:20 CET 2015

On Nov 25, 2015, at 12:24 PM, René J. V. Bertin <rjvbertin at gmail.com<mailto:rjvbertin at gmail.com>> wrote:

Petroules Jake wrote:

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.


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

Development mailing list
Development at qt-project.org<mailto:Development at qt-project.org>

Jake Petroules - jake.petroules at theqtcompany.com<mailto:jake.petroules at theqtcompany.com>
Consulting Services Engineer - The Qt Company

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20151125/4beaa316/attachment.html>

More information about the Development mailing list