-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
swaymsg is incompatible with json-c-0.14 #5349
Comments
I just hit this. It causes swaybar to crash on startup inside The problem is with the generated JSON from sway. The value of
looks like this:
(Note: "f" and "j" are workspace names. JSON has been run through jq for readability) The JSON object is missing a number of properties that swaybar is expecting. Looking at the code in
|
json-c/json-c#599 Yeah that'll be it :) |
@sfar9999 Indeed, just compiled sway with json-c master and everything works again. Sway still needs an update though. A direct access has been deprecated: which is used in i3bar.c
|
Thanks for digging and confirming the issue is upstream, I'm going to close this issue since there's not much sway can do about it. I'm not sure that switching to I know Arch packages 0.14 now, and that's where a lot of the recent json-c issues have been coming from (like #5290, and this). At least until its wrinkles are ironed out, hard-requiring it for a cosmetic improvement sounds like it'd cause more problems than it'd solve. |
Gentoo just stablized json-c 0.14 as well, not sure this problem is going to just go away. Is there an upstream bug? |
@prometheanfire yes, this is tracked upstream in json-c/json-c#599, and it looks like it's been fixed there, just waiting on package maintainers at this point. There's not much we can do on sway's end. |
ah, thanks, I'll poke the maintianers gentoo side and see if we can get a revbump for that. |
On sway version 1.4 swaymsg -t get_outputs shows no outputs, when it's compiled with json-c-0.14. The version json-c-0.13.1 works fine though.
Also see this https://github.com/Alexays/Waybar/issues/709 bug.
The text was updated successfully, but these errors were encountered: