exec: remove redundant environment variables from spawn (#3923)

This commit is contained in:
thejch 2023-11-24 04:42:20 -08:00 committed by GitHub
parent aedcade68d
commit 258c83f3bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()) {