core: remove wayland sockets on exit (#5959)

This commit is contained in:
Ikalco 2024-05-09 07:39:15 -05:00 committed by GitHub
parent 84e8d1810d
commit 67a5377b41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {