diff main/main.cpp @ 1307:e93ad534c1cb 3.0-integration

Support multiple plugin checker helpers, as for multiple piper servers
author Chris Cannam
date Tue, 01 Nov 2016 14:06:47 +0000
parents 7293bc5ee7f8
children b0138a0fbace 8ca62b402846
line wrap: on
line diff
--- a/main/main.cpp	Tue Nov 01 12:09:05 2016 +0000
+++ b/main/main.cpp	Tue Nov 01 14:06:47 2016 +0000
@@ -342,26 +342,8 @@
     StoreStartupLocale();
 
     // Make known-plugins query as early as possible after showing
-    // splash screen. This depends on our helper executable, which
-    // must exist either in the same directory as this one or
-    // (preferably) a subdirectory called "checker".
-    QString myDir = application.applicationDirPath();
-    QString helperPath = myDir + "/checker/plugin-checker-helper";
-    QString helperSuffix = "";
-#ifdef _WIN32
-    helperSuffix = ".exe";
-#endif
-    if (!QFile(helperPath + helperSuffix).exists()) {
-        cerr << "NOTE: helper not found at " << (helperPath + helperSuffix)
-             << ", trying in my own directory" << endl;
-        helperPath = myDir + "/plugin-checker-helper";
-    }
-    if (!QFile(helperPath + helperSuffix).exists()) {
-        cerr << "NOTE: helper not found at " << (helperPath + helperSuffix)
-             << endl;
-    }
-    helperPath += helperSuffix;
-    PluginScan::getInstance()->scan(helperPath);
+    // splash screen.
+    PluginScan::getInstance()->scan();
     
     // Permit size_t and PropertyName to be used as args in queued signal calls
     qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName");