From 670ba55b3593cdc1bdf3d843c8f4cdd0626c3a7c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 31 Mar 2022 19:16:00 +0200 Subject: [PATCH] export XDG_CURRENT_DESKTOP --- src/Compositor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 0af5723d..cb45a9d5 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -155,6 +155,9 @@ void CCompositor::startCompositor() { setenv("QT_QPA_PLATFORM", "wayland", true); setenv("MOZ_ENABLE_WAYLAND", "1", true); + // Set XDG_CURRENT_DESKTOP to our compositor's name + setenv("XDG_CURRENT_DESKTOP", "hyprland", true); + m_szWLDisplaySocket = wl_display_add_socket_auto(m_sWLDisplay); if (!m_szWLDisplaySocket) {