[SailfishDevel] Hardcoded Path

Kaj-Michael Lang milang at tal.org
Thu Mar 12 13:42:19 UTC 2015


On to, 2015-03-12 at 14:33 +0100, Antonio Mancini wrote:
> I want to use the  XDG Base Directory Specification but i don't know
> how to use it.

Use should use Qts QStandardPaths to get various locations that you can
use for your files.
See http://doc.qt.digia.com/qt-5.2/qstandardpaths.html for details

$XDG_DATA_HOME refers to an environment variable, you use getenv() to
get the contents of that.

-- 
Kaj-Michael Lang <milang at tal.org>



More information about the Devel mailing list