Skip to content

Commit

Permalink
修复 obs 打开报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ehnap committed Jun 14, 2019
1 parent fe7b4f2 commit feb7c5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions galapp/src/resultlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ void ResultItem::exec()
{
QProcess process;
process.setProgram(fullPath);
// 一些app例如obs,不设置工作目录,程序运行不正确
process.setWorkingDirectory(fi.dir().path());
process.startDetached();
}
else if (fi.isDir())
Expand Down

0 comments on commit feb7c5a

Please sign in to comment.