Skip to content

Commit 306f851

Browse files
committed
Shortened hash used as socket name (MD5 now)
From Blake2b_512 to MD5, for UNIX
1 parent 392ef54 commit 306f851

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main(int argc, char *argv[])
1717

1818
QApplication app(argc, argv);
1919

20-
// qInstallMessageHandler(message_handler); // Output debug info to qInfo.log | Disable for Debug
20+
qInstallMessageHandler(message_handler); // Output debug info to qInfo.log | Disable for Debug
2121

2222
app.setWindowIcon(QIcon(":/img/logo-dark.svg"));
2323

@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
4040

4141
// CHECK IF THE APPLICATION IS RUNNING
4242
// IF SO, SEND THEM A REQUEST TO ACTIVATE THE WINDOW AND CLOSE THE CURRENT COPY
43-
const QString APP_ID = QCryptographicHash::hash(QString(QCoreApplication::applicationFilePath() + "-" + SOFT_NAME + "-" + SOFT_VERSION).toUtf8(), QCryptographicHash::Blake2b_512);
43+
const QString APP_ID = QCryptographicHash::hash(QString(QCoreApplication::applicationFilePath() + "-" + SOFT_NAME + "-" + SOFT_VERSION).toUtf8(), QCryptographicHash::Md5);
4444

4545
QLocalSocket socket;
4646
socket.connectToServer(APP_ID);

0 commit comments

Comments
 (0)