mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-22 23:08:44 +00:00
17 lines
No EOL
417 B
C++
17 lines
No EOL
417 B
C++
// 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();
|
|
} |