From feb7c5abc7648a57b28d0911fa5ef3b76aac4002 Mon Sep 17 00:00:00 2001 From: ehnap Date: Fri, 14 Jun 2019 15:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20obs=20=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- galapp/src/resultlist.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/galapp/src/resultlist.cpp b/galapp/src/resultlist.cpp index 3ca56bd..b2147fc 100644 --- a/galapp/src/resultlist.cpp +++ b/galapp/src/resultlist.cpp @@ -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())