Skip to content
Snippets Groups Projects
Commit fc4c0eb3 authored by Joseph Boudreau's avatar Joseph Boudreau
Browse files

no need to set gxpluginpath for the mac. Other platforms: not yet

parent e4f08f80
No related branches found
No related tags found
No related merge requests found
......@@ -17,10 +17,28 @@
// C++ includes
#include <iostream>
#include <stdlib.h>
#include <cstdlib>
int main(int argc, char** argv)
{
auto pManip= [] (const char * variable, const char *plus) {
const char *path=getenv(variable);
if (path) {
std::string newPath=std::string(path)+":"+plus;
setenv(variable, newPath.c_str(), true);
}
else {
setenv(variable, plus, true);
}
};
// JFB Put some defaults. This depends upon architecture. The list should
// be expanded to include other architectures and/or passed in through the
// compiler.
#ifdef __APPLE__
pManip("GXPLUGINPATH","/usr/local/lib/gxplugins");
#endif
QStringList arguments;
for (int i = 0; i<=argc; i++){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment