mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 07:31:53 -07:00
exec: remove redundant environment variables from spawn (#3923)
This commit is contained in:
@@ -641,11 +641,6 @@ void CKeybindManager::spawn(std::string args) {
|
|||||||
args = args.substr(args.find_first_of(']') + 1);
|
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);
|
const uint64_t PROC = spawnRaw(args);
|
||||||
|
|
||||||
if (!RULES.empty()) {
|
if (!RULES.empty()) {
|
||||||
|
Reference in New Issue
Block a user