Even better logging
This commit is contained in:
parent
e800bc161d
commit
df9533d4ab
3 changed files with 11 additions and 10 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue