2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use QProcess::startDetached for xdg-open

Since it may running continously
This commit is contained in:
Ilya Fedin
2021-03-17 04:02:06 +04:00
committed by John Preston
parent bc67b79023
commit ace5740125

View File

@@ -39,7 +39,7 @@ void UnsafeOpenUrl(const QString &url) {
return;
}
QProcess::execute(qsl("xdg-open"), { url });
QProcess::startDetached(qsl("xdg-open"), { url });
}
void UnsafeOpenEmailLink(const QString &email) {
@@ -83,7 +83,7 @@ void UnsafeLaunch(const QString &filepath) {
return;
}
QProcess::execute(qsl("xdg-open"), { qUrlPath.toEncoded() });
QProcess::startDetached(qsl("xdg-open"), { qUrlPath.toEncoded() });
}
} // namespace File