From d44f8a1e1ce71ffbf2d0811391d77b1f3ec4b569 Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Fri, 20 Dec 2024 18:06:13 +0000 Subject: [PATCH] add "disable_assets_check" modified: src/Compositor.cpp modified: src/config/ConfigManager.cpp --- src/Compositor.cpp | 3 ++- src/config/ConfigManager.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 5e8c8048..21f7c0a6 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2615,6 +2615,7 @@ WORKSPACEID CCompositor::getNewSpecialID() { void CCompositor::performUserChecks() { static auto PNOCHECKXDG = CConfigValue("misc:disable_xdg_env_checks"); static auto PNOCHECKQTUTILS = CConfigValue("misc:disable_hyprland_qtutils_check"); + static auto PNOCHECKASSETS = CConfigValue("misc:disable_assets_check"); if (!*PNOCHECKXDG) { const auto CURRENT_DESKTOP_ENV = getenv("XDG_CURRENT_DESKTOP"); @@ -2633,7 +2634,7 @@ void CCompositor::performUserChecks() { } } - if (g_pHyprOpenGL->failedAssetsNo > 0) { + if (!*PNOCHECKASSETS && g_pHyprOpenGL->failedAssetsNo > 0) { g_pHyprNotificationOverlay->addNotification(std::format("Hyprland failed to load {} essential asset{}, blame your distro's packager for doing a bad job at packaging!", g_pHyprOpenGL->failedAssetsNo, g_pHyprOpenGL->failedAssetsNo > 1 ? "s" : ""), CHyprColor{1.0, 0.1, 0.1, 1.0}, 15000, ICON_ERROR); diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index f4ba7379..496bd066 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -388,6 +388,7 @@ CConfigManager::CConfigManager() { m_pConfig->addConfigValue("misc:render_unfocused_fps", Hyprlang::INT{15}); m_pConfig->addConfigValue("misc:disable_xdg_env_checks", Hyprlang::INT{0}); m_pConfig->addConfigValue("misc:disable_hyprland_qtutils_check", Hyprlang::INT{0}); + m_pConfig->addConfigValue("misc:disable_assets_check", Hyprlang::INT{0}); m_pConfig->addConfigValue("misc:lockdead_screen_delay", Hyprlang::INT{1000}); m_pConfig->addConfigValue("group:insert_after_current", Hyprlang::INT{1});