3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-20 08:15:33 +00:00

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

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