[KDE/Mac] QStandardPaths possible solution

René J.V. Bertin rjvbertin at gmail.com
Thu Jan 8 15:01:14 UTC 2015


On Thursday January 08 2015 07:01:49 Jeremy Whiting wrote:

> Sorry I forgot to upload my changes to my patch for 5.4. I've attached it
> here the includes at the top aren't needed

OK, no problem. Just 1 less hunk in the patch file :)

> (and maybe I should remove the
> whitespace change also before pushing to gerrit?).

Heh, you may find that someone will tilt over such a glaring unrelated change, just as others (like me and apparently you) have no difficulties at all with it.

> What would you put in
> place of "/opt/local/share" with your idea of configure time prefix?

To be honest, I have almost no experience with editing autoconf/configure based build systems, other than simple changes. As I wrote earlier, I'd put ${prefix}/share into a preprocessor macro if the corresponding option has been given to configure, and then also use that macro to activate the corresponding code. Either the line

        dirs.append(QString::fromLatin1("/opt/local/share"));

or all of xdgDirs() and the places it's called.

The configure option could be something like `-xdg-compliant-path`, but I hope David has some suggestions on how to implement the intermediate things.

R.


More information about the kde-mac mailing list