summaryrefslogtreecommitdiff
path: root/gnome-extra/cinnamon/files/lspci.patch
blob: d34e8b4c41c09ad51891704faa967bb69204fc56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/files/usr/lib/cinnamon-settings/modules/cs_info.py
+++ b/files/usr/lib/cinnamon-settings/modules/cs_info.py
@@ -31,12 +31,12 @@ def getProcessOut(command):
 def getGraphicsInfos():
     cards = {}
     count = 0
-    for card in getProcessOut(("lspci")):
+    for card in getProcessOut(("/usr/sbin/lspci")):
         if not "VGA" in card:
             continue
         cardId = card.split()[0]
         cardName = None
-        for line in getProcessOut(("lspci", "-v", "-s", cardId)):
+        for line in getProcessOut(("/usr/sbin/lspci", "-v", "-s", cardId)):
             if line.startswith(cardId):
                 cardName = (line.split(":")[2].split("(rev")[0].strip())