From 6a68b6fa11822935d3ea1d144cb3f2c4855c9026 Mon Sep 17 00:00:00 2001 From: karliss Date: Wed, 5 Feb 2025 13:54:42 +0200 Subject: [PATCH] Initialize default environement for debugger. (#3410) --- src/core/Cutter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index 49478bb9..e674d9a6 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();