mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 18:18:02 +02:00
Merge pull request #9604 from hyperlogic/feature/allow-multiple-instances
Allow multiple instances to run if environment variable is set
This commit is contained in:
commit
eb0a316b6f
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ int main(int argc, const char* argv[]) {
|
||||||
instanceMightBeRunning = !sharedMemory.create(1, QSharedMemory::ReadOnly);
|
instanceMightBeRunning = !sharedMemory.create(1, QSharedMemory::ReadOnly);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// allow multiple interfaces to run if this environment variable is set.
|
||||||
|
if (QProcessEnvironment::systemEnvironment().contains("HIFI_ALLOW_MULTIPLE_INSTANCES")) {
|
||||||
|
instanceMightBeRunning = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (instanceMightBeRunning) {
|
if (instanceMightBeRunning) {
|
||||||
// Try to connect and send message to existing interface instance
|
// Try to connect and send message to existing interface instance
|
||||||
QLocalSocket socket;
|
QLocalSocket socket;
|
||||||
|
|
Loading…
Reference in a new issue