mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Use QProcess::startDetached for xdg-open
Since it may running continously
This commit is contained in:
parent
bc67b79023
commit
ace5740125
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ void UnsafeOpenUrl(const QString &url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QProcess::execute(qsl("xdg-open"), { url });
|
QProcess::startDetached(qsl("xdg-open"), { url });
|
||||||
}
|
}
|
||||||
|
|
||||||
void UnsafeOpenEmailLink(const QString &email) {
|
void UnsafeOpenEmailLink(const QString &email) {
|
||||||
|
@ -83,7 +83,7 @@ void UnsafeLaunch(const QString &filepath) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QProcess::execute(qsl("xdg-open"), { qUrlPath.toEncoded() });
|
QProcess::startDetached(qsl("xdg-open"), { qUrlPath.toEncoded() });
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace File
|
} // namespace File
|
||||||
|
|
Loading…
Add table
Reference in a new issue