[KDE/Mac] Thoughts on standard directories in Qt5 - QStandardPaths
mk-lists at email.de
Mon Jan 5 17:06:14 UTC 2015
there has been quite some activity here on the list in the last while...
Not having taking part in discussions for so long makes it hard to respond
> > I think we should also implement, in the patch, support for *all* XDG-type
> > directories AND the corresponding XDG_* environment variables,
> > including XDG_*_HOME directories, in either ::standardLocations()
> > or ::writableLocation().
> OK. You can take that code from qstandardpaths_unix.cpp ;-)
> I could update my patch, but I'm coding blind, so it would be much better if
> someone with a Qt build from sources (git) on OS X could finish the patch and
> then submit it to gerrit.
I had done all that earlier in , before Jeremy and I had discussed with Thiago.
> OK. Then there's a short term option which is to finish the QStandardPaths
> patch and apply it only the MacPorts build, until it's proven to work and can
> then be submitted to Qt upstream.
In  I had stripped it down to only XDG_DATA_DIRS, because that's what we needed
for the CI system.
This allows the CI system to run its tests fine and with the run.sh  script
I can also run KF5 apps on the console successfully, which does set XDG_DATA_DIRS
as required. (I am sorry, if this is redundant.)
> I think you misunderstood my question, which I'll rephrase:
> for a MacPorts user, is it possible to install Qt into /opt/local and install
> an app (still via MacPorts) into /opt/myapp or, say, $HOME/myapp ?
Yes, that is possible and is done so. As discussed earlier MacPorts usually installs
the KDE executable app packages into /Applications/MacPorts/KDE/ ...
> (and if so, does it all work automatically without setting env vars?)
> (the question is about MacPorts in general, not KDE specific)
... without the need for env vars.
Jeremy has written earlier on this thread how it works on his kdesrc-build install.
Well, and as Jeremy pointed out, we can easily reintroduce those bits from the
Unix code which deal with XDG_CONFIG_DIRS.
More information about the kde-mac