Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
fix:修复从安装器启动客户端,cwd错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Sallee1 committed Jun 18, 2023
1 parent cde79d9 commit 2c88e71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source Files/tianli_widget_super.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ namespace tianli {
{
QProcess process;
std::string processPath = std::format("\"{0}\\{1}\"", std::string(ui->lineEdit_installPath->text().toLocal8Bit()), config::installInfo.exePath);
process.startDetached(QString::fromLocal8Bit(processPath.c_str()));
process.setProgram(QString::fromLocal8Bit(processPath.c_str()));
process.setWorkingDirectory(QString::fromStdString(std::string(ui->lineEdit_installPath->text().toLocal8Bit())));
process.startDetached();
this->close();
}

Expand Down

0 comments on commit 2c88e71

Please sign in to comment.