hyprland: fix read errors
idk why but sometimes it splits the output into two so it cant json.parse it
This commit is contained in:
parent
dbc81e6fbf
commit
0c3899ce80
1 changed files with 1 additions and 2 deletions
|
|
@ -40,9 +40,8 @@ Singleton {
|
|||
|
||||
Process {
|
||||
id: getClients
|
||||
command: ["hyprctl", "-j", "clients"]
|
||||
command: ["sh", "-c", "hyprctl -j clients | jq -c"]
|
||||
stdout: SplitParser {
|
||||
splitMarker: ""
|
||||
onRead: data => {
|
||||
const clients = JSON.parse(data);
|
||||
const rClients = root.clients;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue