You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
417 B
17 lines
417 B
// SPDX-License-Identifier: BSD-3-Clause
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
|
|
|
#include "whonix.h"
|
|
|
|
#include "utils/utils.h"
|
|
|
|
bool WhonixOS::detect() {
|
|
return !QString::fromLocal8Bit(qgetenv("WHONIX")).isEmpty();
|
|
}
|
|
|
|
QString WhonixOS::version() {
|
|
if (!Utils::fileExists("/etc/whonix_version"))
|
|
return "";
|
|
|
|
return Utils::barrayToString(Utils::fileOpen("/etc/whonix_version")).trimmed();
|
|
} |