fix(updater): fix bad exe_name on linux

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2023-06-30 21:33:22 -07:00
parent 1fd90e9dd0
commit cea285f5f5
No known key found for this signature in database
GPG Key ID: E10E321EB160949B

View File

@ -710,7 +710,7 @@ void PrismUpdaterApp::moveAndFinishUpdate(QDir target)
env.insert("__COMPAT_LAYER", "RUNASINVOKER");
proc.setProcessEnvironment(env);
#else
exe_name.prepend("bin/");
app_exe_name.prepend("bin/");
#endif
auto app_exe_path = target.absoluteFilePath(app_exe_name);
@ -1023,8 +1023,6 @@ void PrismUpdaterApp::performInstall(QFileInfo file)
auto env = QProcessEnvironment::systemEnvironment();
env.insert("__COMPAT_LAYER", "RUNASINVOKER");
proc.setProcessEnvironment(env);
#else
exe_name.prepend("bin/");
#endif
proc.setProgram(file.absoluteFilePath());
bool result = proc.startDetached();