welcome: skip in safe mode

This commit is contained in:
Vaxry 2026-02-19 01:12:48 +00:00
parent 7a566942d5
commit a1e62dcb12
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -1,4 +1,5 @@
#include "WelcomeManager.hpp"
#include "../Compositor.hpp"
#include "../debug/log/Logger.hpp"
#include "../config/ConfigValue.hpp"
#include "../helpers/fs/FsUtils.hpp"
@ -15,6 +16,11 @@ CWelcomeManager::CWelcomeManager() {
return;
}
if (g_pCompositor->m_safeMode) {
Log::logger->log(Log::DEBUG, "[welcome] skipping, safe mode");
return;
}
if (!NFsUtils::executableExistsInPath("hyprland-welcome")) {
Log::logger->log(Log::DEBUG, "[welcome] skipping, no welcome app");
return;