mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Even better logging
This commit is contained in:
@@ -41,7 +41,7 @@ Singleton {
|
||||
return
|
||||
}
|
||||
} catch (e) {
|
||||
Logger.error("Workspaces", "Error detecting compositor:", e)
|
||||
Logger.error("WorkspacesService", "Error detecting compositor:", e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ Singleton {
|
||||
// updateHyprlandWorkspaces();
|
||||
return true
|
||||
} catch (e) {
|
||||
Logger.error("Error initializing Hyprland:", e)
|
||||
Logger.error("WorkspacesService", "Error initializing Hyprland:", e)
|
||||
isHyprland = false
|
||||
return false
|
||||
}
|
||||
@@ -98,7 +98,7 @@ Singleton {
|
||||
}
|
||||
workspacesChanged()
|
||||
} catch (e) {
|
||||
Logger.error("Workspaces", "Error updating Hyprland workspaces:", e)
|
||||
Logger.error("WorkspacesService", "Error updating Hyprland workspaces:", e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,16 +138,16 @@ Singleton {
|
||||
try {
|
||||
Hyprland.dispatch(`workspace ${workspaceId}`)
|
||||
} catch (e) {
|
||||
Logger.error("Error switching Hyprland workspace:", e)
|
||||
Logger.error("WorkspacesService", "Error switching Hyprland workspace:", e)
|
||||
}
|
||||
} else if (isNiri) {
|
||||
try {
|
||||
Quickshell.execDetached(["niri", "msg", "action", "focus-workspace", workspaceId.toString()])
|
||||
} catch (e) {
|
||||
Logger.error("Error switching Niri workspace:", e)
|
||||
Logger.error("WorkspacesService", "Error switching Niri workspace:", e)
|
||||
}
|
||||
} else {
|
||||
Logger.warn("No supported compositor detected for workspace switching")
|
||||
Logger.warn("WorkspacesService", "No supported compositor detected for workspace switching")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user