Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output valid json when there are no clients #479

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

rubyist
Copy link
Contributor

@rubyist rubyist commented Aug 5, 2022

The json formatter pops off a character assuming it's a comma, but if there are no clients it pops off the [ instead:

$ hyprctl -j clients
]

This fixes that up:

$ hyprctl -j clients
[]

@vaxerski
Copy link
Member

vaxerski commented Aug 5, 2022

thank you uwu

@vaxerski vaxerski merged commit ccd6804 into hyprwm:main Aug 5, 2022
@rubyist rubyist deleted the fix-json branch August 10, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants