As default behaviour, use hwdata files for pci and usb ids files.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/140/head
gregory guy 3 years ago
parent 77de34391c
commit d7fad5b469
No known key found for this signature in database
GPG Key ID: 2CC84A1CC6823AF8

@ -3800,7 +3800,7 @@ TQString TDEHardwareDevices::findPCIDeviceName(TQString vendorid, TQString model
if (!pci_id_map) {
pci_id_map = new TDEDeviceIDMap;
TQString database_filename = "/usr/share/pci.ids";
TQString database_filename = "/usr/share/hwdata/pci.ids";
if (!TQFile::exists(database_filename)) {
database_filename = "/usr/share/misc/pci.ids";
}
@ -3910,7 +3910,7 @@ TQString TDEHardwareDevices::findUSBDeviceName(TQString vendorid, TQString model
if (!usb_id_map) {
usb_id_map = new TDEDeviceIDMap;
TQString database_filename = "/usr/share/usb.ids";
TQString database_filename = "/usr/share/hwdata/usb.ids";
if (!TQFile::exists(database_filename)) {
database_filename = "/usr/share/misc/usb.ids";
}

Loading…
Cancel
Save