From 258c83f3bb08cd5a342f4e437e41df179298b4e1 Mon Sep 17 00:00:00 2001 From: thejch <66577496+thejch@users.noreply.github.com> Date: Fri, 24 Nov 2023 04:42:20 -0800 Subject: [PATCH] exec: remove redundant environment variables from spawn (#3923) --- src/managers/KeybindManager.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index c3a5efe1..986de55e 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -641,11 +641,6 @@ void CKeybindManager::spawn(std::string args) { args = args.substr(args.find_first_of(']') + 1); } - if (g_pXWaylandManager->m_sWLRXWayland) - args = "WAYLAND_DISPLAY=" + std::string(g_pCompositor->m_szWLDisplaySocket) + " DISPLAY=" + std::string(g_pXWaylandManager->m_sWLRXWayland->display_name) + " " + args; - else - args = "WAYLAND_DISPLAY=" + std::string(g_pCompositor->m_szWLDisplaySocket) + " " + args; - const uint64_t PROC = spawnRaw(args); if (!RULES.empty()) {