unsetenv on no XWayland

This commit is contained in:
Vaxry 2022-10-11 11:59:57 +01:00
parent 7ffe4eda12
commit 7ecc41db9c

View file

@ -17,6 +17,8 @@ CHyprXWaylandManager::CHyprXWaylandManager() {
setenv("DISPLAY", m_sWLRXWayland->display_name, 1);
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
}
}