settings.py: launch lspci by full path (/usr/sbin/lspci)

This commit is contained in:
Wojciech Zygmunt Porczyk 2014-05-16 19:16:16 +02:00
parent 511767c662
commit f882042994

View File

@ -636,7 +636,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
self.devices_layout.addWidget(self.dev_list)
devs = []
lspci = subprocess.Popen(["lspci",], stdout = subprocess.PIPE)
lspci = subprocess.Popen(["/usr/sbin/lspci",], stdout = subprocess.PIPE)
for dev in lspci.stdout:
devs.append( (dev.rstrip(), dev.split(' ')[0]) )