compositor: warn on start via a log about start-hyprland

This commit is contained in:
Vaxry 2025-12-17 19:26:10 +00:00
parent 18901b8e59
commit f88deb928a
No known key found for this signature in database
GPG key ID: 665806380871D640
3 changed files with 10 additions and 3 deletions

View file

@ -211,10 +211,16 @@ int main(int argc, char** argv) {
reapZombieChildrenAutomatically();
bool watchdogOk = watchdogFd > 0;
if (watchdogFd > 0)
g_pCompositor->setWatchdogFd(watchdogFd);
watchdogOk = g_pCompositor->setWatchdogFd(watchdogFd);
if (safeMode)
g_pCompositor->m_safeMode = true;
if (!watchdogOk)
Debug::log(WARN, "WARNING: Hyprland is being launched without start-hyprland. This is highly advised against.");
g_pCompositor->initServer(socketName, socketFd);
if (verifyConfig)