From 91d838850e3481f360bb8aa0a53a2bc8db71c81d Mon Sep 17 00:00:00 2001 From: Karliss Date: Fri, 31 Jan 2025 21:49:51 +0200 Subject: [PATCH] Initialize default environement for debugger. --- src/core/Cutter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index 49478bb94..e674d9a61 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -23,6 +23,7 @@ #include #include +#include #include static CutterCore *uniqueInstance; @@ -200,6 +201,8 @@ void CutterCore::initialize(bool loadPlugins) rz_cons_new(); // initialize console core_ = rz_core_new(); + char **env = rz_sys_get_environ(); + core_->io->envprofile = rz_run_get_environ_profile(env); rz_core_task_sync_begin(&core_->tasks); coreBed = rz_cons_sleep_begin(); CORE_LOCK();