Browse Source

main.cc: Different runguard names for custom builds:

This way we can run at the same time regular and custom
so runguard will not block the execution of each other
QGC4.4
david sastre 4 years ago committed by Don Gagne
parent
commit
bae87883a7
  1. 9
      src/main.cc

9
src/main.cc

@ -223,7 +223,14 @@ bool checkAndroidWritePermission() { @@ -223,7 +223,14 @@ bool checkAndroidWritePermission() {
int main(int argc, char *argv[])
{
#ifndef __mobile__
RunGuard guard("QGroundControlRunGuardKey");
// We make the runguard key different for custom and non custom
// builds, so they can be executed together in the same device.
// Stable and Daily have same QGC_APPLICATION_NAME so they would
// not be able to run at the same time
QString runguardString(QGC_APPLICATION_NAME);
runguardString.append("RunGuardKey");
RunGuard guard(runguardString);
if (!guard.tryToRun()) {
// QApplication is necessary to use QMessageBox
QApplication errorApp(argc, argv);

Loading…
Cancel
Save