From 7c750ff3dbcfab2446598bdb0289807125885c6f Mon Sep 17 00:00:00 2001 From: peijiankang Date: Mon, 30 May 2022 10:40:41 +0800 Subject: [PATCH] Fix the problem that the contents of youker-assistant are not displayed --- .../systemdaemon/conf/com.kylin.assistant.systemdaemon.service | 2 +- kyasDbus/systemdaemon/kacmdtool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kyasDbus/systemdaemon/conf/com.kylin.assistant.systemdaemon.service b/kyasDbus/systemdaemon/conf/com.kylin.assistant.systemdaemon.service index 7dc6fc8..7d019d1 100644 --- a/kyasDbus/systemdaemon/conf/com.kylin.assistant.systemdaemon.service +++ b/kyasDbus/systemdaemon/conf/com.kylin.assistant.systemdaemon.service @@ -1,4 +1,4 @@ [D-BUS Service] Name=com.kylin.assistant.systemdaemon -Exec=/usr/bin/kylin-assistant-systemdaemon.py +Exec=/usr/lib/python3/dist-packages/kylin-assistant-daemon/systemdaemon/kasystemdbusmain.py User=root diff --git a/kyasDbus/systemdaemon/kacmdtool.py b/kyasDbus/systemdaemon/kacmdtool.py index 8a699f2..b12f6cb 100644 --- a/kyasDbus/systemdaemon/kacmdtool.py +++ b/kyasDbus/systemdaemon/kacmdtool.py @@ -318,7 +318,7 @@ class KACmdTool(): if not forceLoad and len(self.lshwSystemList) > 0 : return - args = ["lshw"] + args = ["/usr/sbin/lshw"] pipe = subprocess.Popen(args, env={'LANGUAGE':'en:'}, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output = pipe.stdout.readlines() -- 2.33.0