1 diff --git a/src/util/externalcommandhelper.cpp b/src/util/externalcommandhelper.cpp
2 index a879c8d..3d7863b 100644
3 --- a/src/util/externalcommandhelper.cpp
4 +++ b/src/util/externalcommandhelper.cpp
5 @@ -387,7 +387,7 @@ QVariantMap ExternalCommandHelper::RunCommand(const QString& command, const QStr
6 if (dirname == QStringLiteral("bin") || dirname == QStringLiteral("sbin")) {
9 - if (trustedPrefixes.find(prefix.path()) == trustedPrefixes.end()) { // TODO: C++20: replace with contains
10 + if (!prefix.path().startsWith(QStringLiteral("/nix/store")) && !prefix.path().startsWith(QStringLiteral("/run/current-system/sw"))) { // TODO: C++20: replace with contains
11 qInfo() << prefix.path() << "prefix is not one of the trusted command prefixes";
12 reply[QStringLiteral("success")] = false;