- const auto path = QString::fromStdString("assets:/sigrok-firmware/" + name);
- std::unique_ptr<QFile> file {new QFile{path}};
+ auto path = QStandardPaths::locate(QStandardPaths::GenericDataLocation,
+ QString::fromStdString("sigrok-firmware/" + name));
+ if (path.isEmpty())
+ path = QString::fromStdString("assets:/sigrok-firmware/" + name);
+
+ unique_ptr<QFile> file {new QFile{path}};