1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #4650

anthony.bilinski (1):
      feat(ui): output instructions when user tries to open a second instance
This commit is contained in:
sudden6 2017-09-17 11:24:34 +02:00
commit d746ea9daf
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -247,7 +247,7 @@ int main(int argc, char* argv[])
a->addLibraryPath("platforms");
qDebug() << "built on: " << __TIME__ << __DATE__ << "(" << TIMESTAMP << ")";
qDebug() << "commit: " << GIT_VERSION << "\n";
qDebug() << "commit: " << GIT_VERSION;
// Check whether we have an update waiting to be installed
@ -300,7 +300,12 @@ int main(int argc, char* argv[])
time_t event = ipc.postEvent(eventType, firstParam.toUtf8(), ipcDest);
// If someone else processed it, we're done here, no need to actually start qTox
if (ipc.waitUntilAccepted(event, 2)) {
qDebug() << "Event" << eventType << "was handled by other client.";
if (eventType == "activate") {
qDebug() << "Another qTox instance is already running. If you want to start a second "
"instance, please start with a profile (qtox -p <profile name>).";
} else {
qDebug() << "Event" << eventType << "was handled by other client.";
}
return EXIT_SUCCESS;
}
}