From 3ed0bc5c7793f8952f4c3270ff682b3f2921123a Mon Sep 17 00:00:00 2001 From: geverl <3144213+geverl@users.noreply.github.com> Date: Fri, 18 Jul 2025 17:22:03 +0200 Subject: [PATCH 1/3] Update utils.cpp --- src/utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 6667f71..b25a3a6 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -27,8 +27,7 @@ void loadEnv() { if (std::getline(lineStream, key, '=')) { std::string value; if (std::getline(lineStream, value)) { - std::string envVar = key + "=" + value; - putenv(envVar.c_str()); + setenv(key.c_str(), value.c_str(), 1); } } } From 0d8eb8363f412ea7b93ebbabd0be3e72dc2c7a97 Mon Sep 17 00:00:00 2001 From: geverl <3144213+geverl@users.noreply.github.com> Date: Fri, 18 Jul 2025 17:22:42 +0200 Subject: [PATCH 2/3] Update main.cpp --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 53ac102..5460d8a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -13,4 +14,4 @@ int main() loadMenu(); return 0; -} \ No newline at end of file +} From 70f6db24fa9de8b348fe7c3c25b59fff6a5093cb Mon Sep 17 00:00:00 2001 From: geverl <3144213+geverl@users.noreply.github.com> Date: Fri, 18 Jul 2025 17:23:29 +0200 Subject: [PATCH 3/3] Create .gitattributes --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf