Commit e3b8c158 authored by Robert Lancaster's avatar Robert Lancaster Committed by Jasem Mutlaq

This patch should help to support running local INDI servers for GPhoto...

This patch should help to support running local INDI servers for GPhoto cameras on OS X.  It adds two environment variables, CAMLIBS and IOLIBS with the paths to the appropriate places in the plugins folder where I will be putting the files using our build script.  Note that I added the environment variables with a check to see whether the plugins folders in question actually exist and a check to see if it should be using the internal drivers.
parent a7bd3a87
......@@ -84,6 +84,12 @@ bool ServerManager::start()
env.insert("PATH", driversDir + ":" + indiServerDir + ":/usr/local/bin:/usr/bin:/bin");
QString gscDirPath=KSPaths::writableLocation(QStandardPaths::GenericDataLocation) + "gsc";
env.insert("GSCDAT", gscDirPath);
QString gphoto_iolibs=QCoreApplication::applicationDirPath() + "/../PlugIns/libgphoto2_port";
if(QFileInfo(gphoto_iolibs).exists()&&Options::indiDriversAreInternal())
env.insert("IOLIBS", QDir(gphoto_iolibs).absolutePath());
QString gphoto_camlibs=QCoreApplication::applicationDirPath() + "/../PlugIns/libgphoto2";
if(QFileInfo(gphoto_camlibs).exists()&&Options::indiDriversAreInternal())
env.insert("CAMLIBS", QDir(gphoto_camlibs).absolutePath());
serverProcess->setProcessEnvironment(env);
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment