diff options
author | Ikalco <[email protected]> | 2024-05-09 07:39:15 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-09 13:39:15 +0100 |
commit | 67a5377b41f121017ed4295a3a592a19b4b7fbfb (patch) | |
tree | 49c9ffad78254d7ad6638dfb8091581896a1315d | |
parent | 84e8d1810d57b65a0bc3b5ac2998bc023df880f4 (diff) | |
download | Hyprland-67a5377b41f121017ed4295a3a592a19b4b7fbfb.tar.gz Hyprland-67a5377b41f121017ed4295a3a592a19b4b7fbfb.zip |
core: remove wayland sockets on exit (#5959)
-rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index a31b1a57..90ef2b66 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -408,6 +408,10 @@ void CCompositor::cleanup() { wl_display_terminate(m_sWLDisplay); m_sWLDisplay = nullptr; + + std::string waylandSocket = std::string{getenv("XDG_RUNTIME_DIR")} + "/" + m_szWLDisplaySocket; + std::filesystem::remove(waylandSocket); + std::filesystem::remove(waylandSocket + ".lock"); } void CCompositor::initManagers(eManagersInitStage stage) { |