Thought about a Qt port
Thiago Macieira
thiago at macieira.org
Sun Mar 31 10:25:59 PDT 2013
On domingo, 31 de março de 2013 16.00.29, Lubomir I. Ivanov wrote:
> this way, if the config gets huge or complicated at some point i can
> just copy the .ini file from an OSX box to a Linux box and it will
> "just work"?
Yes, it should "just work" in that case.
> i side question, we also load/store a file to the application data
> folder (on Windows that is SHGetFolderPath(NULL, CSIDL_APPDATA, ...)
> or e.g "user/appData/roaming/subsurface/"). so what should be used
> here in a portable manner - QDesktopServices::DataLocation?
QDesktopServices::DataLocation is CSIDL_LOCAL_APPDATA on Windows. There's
nothing that uses CSIDL_APPDATA directly.
On Mac, it translates to
FSFindFolder(kUserDomain, kApplicationSupportFolderType, ...)
On Linux, it will be $HOME/.local/share.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130331/6262b7ee/attachment.sig>
More information about the subsurface
mailing list