I am trying to enable the debug logs for hyprland and I get the follow error telling me they are disabled when I launch hyprland
I am using the following home-manager config to launch hyprland which I think implements how hyprland wants debugging enabled (Contributing and Debugging – Hyprland Wiki )
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland.override {
debug = true;
};
settings = {
bind = [
"$mod, P, exec, dmenu-wl_run -i"
]
};
};
This compiles and hyprland works however I still get the error that logs are disabled as per the screenshot above.
How can I enable logging for hyprland when using nixos + homemanager?
Atemu
June 29, 2024, 10:19pm
2
The debug = true;
here is an argument to the Hyprland package that makes it a Debug
build rather than a RelWithDebInfo
one. This is intended for interactively debugging it using a debugger program. It has nothing to do with home-manager and does not implement what the log message asks for.
Please follow the link in the log message and set the hyprland config accordingly.
I see thanks @Atemu
Based on the error message I’ve just updated my home.nix to look like this:
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
settings = {
bind = [
"$mod, P, exec, dmenu-wl_run -i"
]
debug = {
disable_logs = false;
};
};
};
Yet still am getting the same error when starting hyprland.
IldenH
June 30, 2024, 8:47am
4
Hyprland sends the debug message regardless of what debug.disable_logs is set to.
// pluginza
m_pConfig->addSpecialCategory("plugin", {nullptr, true});
m_pConfig->commence();
setDefaultAnimationVars();
resetHLConfig();
Debug::log(INFO,
"!!!!HEY YOU, YES YOU!!!!: further logs to stdout / logfile are disabled by default. BEFORE SENDING THIS LOG, ENABLE THEM. Use debug:disable_logs = false to do so: "
"https://wiki.hyprland.org/Configuring/Variables/#debug");
Debug::disableLogs = reinterpret_cast<int64_t* const*>(m_pConfig->getConfigValuePtr("debug:disable_logs")->getDataStaticPtr());
Debug::disableTime = reinterpret_cast<int64_t* const*>(m_pConfig->getConfigValuePtr("debug:disable_time")->getDataStaticPtr());
if (ERR.has_value())
g_pHyprError->queueCreate(ERR.value(), CColor{1.0, 0.1, 0.1, 1.0});
}
std::string CConfigManager::getConfigDir() {
I don’t see this as an issue, but it could be nice to get confirmation that yes they have actually been enabled.