From 6229ac01ac8e1c63dac348575135c85f72aef80b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 3 Jul 2024 22:11:57 +0200 Subject: [PATCH] stuf --- src/Compositor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 00e7fce1..9866acce 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -640,8 +640,7 @@ void CCompositor::startCompositor(std::string socketName, int socketFd) { signal(SIGPIPE, SIG_IGN); - // TODO: - if (false /* Session-less Hyprland usually means a nest, don't update the env in that case */) { + if (m_pAqBackend->hasSession() /* Session-less Hyprland usually means a nest, don't update the env in that case */) { const auto CMD = #ifdef USES_SYSTEMD "systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME PATH XDG_DATA_DIRS && hash "