diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-01-10 19:09:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-10 18:09:40 +0000 |
| commit | b5fb6110ab1f75440b4b90d09f95d304d8c2080b (patch) | |
| tree | dd1d01b42da490b8e0925b1d913744739d79f9a8 /src/Compositor.cpp | |
| parent | da9252a23e69fc4d34beca73ebcc90b03af0ed2a (diff) | |
core: Add a periodic donation request (#8981)
Will fire once in december and july. Disableable with `ecosystem:no_donation:nag`
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 79574084..fcd15312 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -9,6 +9,7 @@ #include "managers/PointerManager.hpp" #include "managers/SeatManager.hpp" #include "managers/VersionKeeperManager.hpp" +#include "managers/DonationNagManager.hpp" #include "managers/eventLoop/EventLoopManager.hpp" #include <aquamarine/output/Output.hpp> #include <bit> @@ -25,6 +26,7 @@ #endif #include <ranges> #include "helpers/varlist/VarList.hpp" +#include "helpers/fs/FsUtils.hpp" #include "protocols/FractionalScale.hpp" #include "protocols/PointerConstraints.hpp" #include "protocols/LayerShell.hpp" @@ -544,6 +546,8 @@ void CCompositor::cleanup() { g_pSeatManager.reset(); g_pHyprCtl.reset(); g_pEventLoopManager.reset(); + g_pVersionKeeperMgr.reset(); + g_pDonationNagManager.reset(); if (m_pAqBackend) m_pAqBackend.reset(); @@ -645,6 +649,9 @@ void CCompositor::initManagers(eManagersInitStage stage) { Debug::log(LOG, "Creating the VersionKeeper!"); g_pVersionKeeperMgr = std::make_unique<CVersionKeeperManager>(); + Debug::log(LOG, "Creating the DonationNag!"); + g_pDonationNagManager = std::make_unique<CDonationNagManager>(); + Debug::log(LOG, "Starting XWayland"); g_pXWayland = std::make_unique<CXWayland>(g_pCompositor->m_bEnableXwayland); } break; @@ -2645,7 +2652,7 @@ void CCompositor::performUserChecks() { } if (!*PNOCHECKQTUTILS) { - if (!executableExistsInPath("hyprland-dialog")) { + if (!NFsUtils::executableExistsInPath("hyprland-dialog")) { g_pHyprNotificationOverlay->addNotification( "Your system does not have hyprland-qtutils installed. This is a runtime dependency for some dialogs. Consider installing it.", CHyprColor{}, 15000, ICON_WARNING); } |
