diff options
author | vaxerski <[email protected]> | 2022-10-11 11:59:57 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-10-11 12:00:06 +0100 |
commit | 7ecc41db9cd70a9e97c77945c75bf67a73323842 (patch) | |
tree | be93abbf31908cdd707f61354e4f56ce43c3f990 | |
parent | 7ffe4eda12e855c8ea0c554699160d8e8a4e4d36 (diff) | |
download | Hyprland-7ecc41db9cd70a9e97c77945c75bf67a73323842.tar.gz Hyprland-7ecc41db9cd70a9e97c77945c75bf67a73323842.zip |
unsetenv on no XWayland
-rw-r--r-- | src/managers/XWaylandManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index f3f301da..6d8b24fe 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -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 } } |