summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-04-30 22:31:29 +0100
committerGitHub <noreply@github.com>2026-04-30 22:31:29 +0100
commitc6fc1cab99ff8a3d721ae0e5937512e8d6f58a71 (patch)
tree9a362f9ba1984fc9ba554e4e13e50dee0e861192 /src/Compositor.cpp
parent450d8a0bf703f3ec460d367f38d61b5966daf8fe (diff)
helpers/systemInfo: extract info fns (#14222)
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp30
1 files changed, 11 insertions, 19 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index c6430027..ab371df2 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -10,6 +10,7 @@
#include "desktop/history/WorkspaceHistoryTracker.hpp"
#include "desktop/view/Group.hpp"
#include "helpers/Splashes.hpp"
+#include "helpers/SystemInfo.hpp"
#include "config/ConfigValue.hpp"
#include "config/legacy/ConfigManager.hpp"
#include "config/shared/inotify/ConfigWatcher.hpp"
@@ -232,26 +233,7 @@ CCompositor::CCompositor(bool onlyConfig) : m_onlyConfigVerification(onlyConfig)
Log::logger->initIS(m_instancePath);
- Log::logger->log(Log::DEBUG, "Instance Signature: {}", m_instanceSignature);
-
- Log::logger->log(Log::DEBUG, "Runtime directory: {}", m_instancePath);
-
- Log::logger->log(Log::DEBUG, "Hyprland PID: {}", m_hyprlandPID);
-
- Log::logger->log(Log::DEBUG, "===== SYSTEM INFO: =====");
-
- logSystemInfo();
-
- Log::logger->log(Log::DEBUG, "========================");
-
- Log::logger->log(Log::DEBUG, "\n\n"); // pad
-
- Log::logger->log(Log::INFO, "If you are crashing, or encounter any bugs, please consult https://wiki.hypr.land/Crashes-and-Bugs/\n\n");
-
setRandomSplash();
-
- Log::logger->log(Log::DEBUG, "\nCurrent splash: {}\n\n", m_currentSplash);
-
bumpNofile();
}
@@ -365,6 +347,16 @@ void CCompositor::initServer(std::string socketName, int socketFd) {
m_initialized = true;
+ Log::logger->log(Log::DEBUG, "Instance Signature: {}", m_instanceSignature);
+ Log::logger->log(Log::DEBUG, "Runtime directory: {}", m_instancePath);
+ Log::logger->log(Log::DEBUG, "Hyprland PID: {}", m_hyprlandPID);
+ Log::logger->log(Log::DEBUG, "===== SYSTEM INFO: =====");
+ Log::logger->log(Log::DEBUG, "{}", Helpers::SystemInfo::getSystemInfo());
+ Log::logger->log(Log::DEBUG, "========================");
+ Log::logger->log(Log::DEBUG, "\n\n"); // pad
+ Log::logger->log(Log::INFO, "If you are crashing, or encounter any bugs, please consult https://wiki.hypr.land/Crashes-and-Bugs/\n\n");
+ Log::logger->log(Log::DEBUG, "\nCurrent splash: {}\n\n", m_currentSplash);
+
m_drm.fd = m_aqBackend->drmFD();
Log::logger->log(Log::DEBUG, "Running on DRMFD: {}", m_drm.fd);