mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 23:05:59 +01:00
unsetenv on no XWayland
This commit is contained in:
parent
7ffe4eda12
commit
7ecc41db9c
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,8 @@ CHyprXWaylandManager::CHyprXWaylandManager() {
|
||||||
setenv("DISPLAY", m_sWLRXWayland->display_name, 1);
|
setenv("DISPLAY", m_sWLRXWayland->display_name, 1);
|
||||||
|
|
||||||
Debug::log(LOG, "CHyprXWaylandManager started on display %s", m_sWLRXWayland->display_name);
|
Debug::log(LOG, "CHyprXWaylandManager started on display %s", m_sWLRXWayland->display_name);
|
||||||
|
} else {
|
||||||
|
unsetenv("DISPLAY"); // unset DISPLAY so that X11 apps do not try to start on a different/invalid DISPLAY
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue