mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Check updater exit status on Linux
This commit is contained in:
parent
98ba2c7ce4
commit
22a3093815
1 changed files with 3 additions and 2 deletions
|
@ -109,6 +109,7 @@ bool Launcher::launchUpdater(UpdaterLaunch action) {
|
||||||
Logs::closeMain();
|
Logs::closeMain();
|
||||||
CrashReports::Finish();
|
CrashReports::Finish();
|
||||||
|
|
||||||
|
int waitStatus = 0;
|
||||||
if (justRelaunch) {
|
if (justRelaunch) {
|
||||||
return GLib::spawn_async(
|
return GLib::spawn_async(
|
||||||
initialWorkingDir().toStdString(),
|
initialWorkingDir().toStdString(),
|
||||||
|
@ -129,8 +130,8 @@ bool Launcher::launchUpdater(UpdaterLaunch action) {
|
||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
&waitStatus,
|
||||||
nullptr)) {
|
nullptr) || !g_spawn_check_exit_status(waitStatus, nullptr)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return launchUpdater(UpdaterLaunch::JustRelaunch);
|
return launchUpdater(UpdaterLaunch::JustRelaunch);
|
||||||
|
|
Loading…
Add table
Reference in a new issue