core: enforce en_US language in cmds

ref #9
This commit is contained in:
Vaxry 2024-10-16 19:48:42 +01:00
parent dc474b07f6
commit 2104e356be
1 changed files with 3 additions and 0 deletions

View File

@ -19,10 +19,13 @@
#include <sys/utsname.h>
#include <hyprutils/string/VarList.hpp>
#include <hyprutils/string/String.hpp>
#include <cstdlib>
using namespace Hyprutils::String;
CSystemInternals::CSystemInternals(QObject* parent) : QObject(parent) {
setenv("LANG", "en_US.UTF-8", true);
// gather data from os-release
if (auto data = readFile("/etc/os-release")) {
CVarList lines(data.value(), 0, '\n');