Blob Blame History Raw
From e1cb1e40097e893547f25f11d7524ecbe845feb8 Mon Sep 17 00:00:00 2001
From: Robin Lee <cheeselee@fedoraproject.org>
Date: Wed, 5 Oct 2022 15:59:06 +0800
Subject: [PATCH] Run lspci with full path on Fedora

---
 display/manager.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/display/manager.go b/display/manager.go
index 68d916d..6be3c77 100644
--- a/display/manager.go
+++ b/display/manager.go
@@ -2845,7 +2845,7 @@ func (m *Manager) updateScreenSize() {
 
 func getLspci(args []string) (string, error) {
 	ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
-	cmd := exec.CommandContext(ctx, "lspci", args...)
+	cmd := exec.CommandContext(ctx, "/usr/sbin/lspci", args...)
 	cmd.Env = []string{
 		"LC_ALL=C",
 	}
-- 
2.37.2