void DisplayQR(struct TestContents &testContents)
{
int ret;
- std::string command = "/usr/bin/chsmack -a '_' '";
- command += testContents.qrCodeImagePath;
- command += '\'';
-
- // NOLINTNEXTLINE(cert-env33-c,concurrency-mt-unsafe)
- ret = system(command.c_str());
- if (ret) {
- std::cout << "chsmack command failed\n"
- << "System() returned: " << ret << std::endl; // NOLINT(performance-avoid-endl)
- testContents.succeeded = false;
- return;
- }
-
- command = "/usr/bin/webauthn-image-viewer ";
+ std::string command = "/usr/bin/webauthn-image-viewer ";
command += testContents.qrCodeImagePath;
command += " &"; // run background