Changeset View
Changeset View
Standalone View
Standalone View
Modules/usbview/usbdb.cpp
Context not available. | |||||
20 | 20 | | |||
---|---|---|---|---|---|
21 | USBDB::USBDB() { | 21 | USBDB::USBDB() { | ||
22 | QString db = QStringLiteral("/usr/share/hwdata/usb.ids"); /* on Fedora and Arch*/ | 22 | QString db = QStringLiteral("/usr/share/hwdata/usb.ids"); /* on Fedora and Arch*/ | ||
23 | if (!QFile::exists(db)) { | ||||
24 | db = QStringLiteral("/usr/share/misc/usb.ids"); /* on Gentoo */ | ||||
25 | } | ||||
23 | if (!QFile::exists(db)) { | 26 | if (!QFile::exists(db)) { | ||
24 | //cannot use locate(AppDataLocation) as the app is kinfocenter | 27 | //cannot use locate(AppDataLocation) as the app is kinfocenter | ||
25 | db = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kcmusb"), QStandardPaths::LocateDirectory); | 28 | db = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kcmusb"), QStandardPaths::LocateDirectory); | ||
Context not available. |