[Development] QStandardPaths could be helpful for cross platform portability, Qt Everywhere

Kevin Kofler kevin.kofler at chello.at
Wed Feb 25 00:44:49 CET 2015

Jeremy Whiting wrote:
> One solution is to use/support XDG_*_DIRS environment variables on all
> platforms. This has one advantage in that the same tools can be used on
> all platforms to customize the paths given by the standard. This is ok for
> developers working on software, but not the best idea for shipping actual
> software to end users since setting environment variables is not often
> easy or advisable and has other effects. Note this is the approach of the
> patch in gerrit, but it's a non-solution because of the above mentioned
> issues.

Still, I don't understand the strong resistance to implementing this. 
Supporting XDG_* everywhere helps portability and does not hurt the
non-freedesktop.org platforms in any way. If the user doesn't use those 
environment variables, then nothing changes at all.

        Kevin Kofler

More information about the Development mailing list