summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorthejch <66577496+thejch@users.noreply.github.com>2023-11-24 04:42:20 -0800
committerGitHub <noreply@github.com>2023-11-24 12:42:20 +0000
commit258c83f3bb08cd5a342f4e437e41df179298b4e1 (patch)
tree3ec90d924ef1bdc274618fbc34e2959a52f8262e /src/managers/KeybindManager.cpp
parentaedcade68dd0615fd919a7249633a554d0accd81 (diff)
exec: remove redundant environment variables from spawn (#3923)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp5
1 files changed, 0 insertions, 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()) {