Skip to content

fix error handling in ipc client and add safety checks#337

Merged
soreau merged 1 commit intoWayfireWM:masterfrom
AKArien:fix-ipc
Feb 17, 2026
Merged

fix error handling in ipc client and add safety checks#337
soreau merged 1 commit intoWayfireWM:masterfrom
AKArien:fix-ipc

Conversation

@AKArien
Copy link
Contributor

@AKArien AKArien commented Feb 13, 2026

No description provided.

@AKArien AKArien force-pushed the fix-ipc branch 2 times, most recently from 5a97d25 to befba5b Compare February 17, 2026 10:12
Copy link
Member

@soreau soreau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Aside from the nitpicks, this is certainly an improvement.

ipc_client->send("{\"method\":\"wayfire/get-keyboard-state\"}", [=] (wf::json_t data)
{
if (data.serialize().find(
"error") != std::string::npos)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did uncrustify separate this into two lines? Doesn't seem necessary..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, should we output the socket_path here?

@soreau
Copy link
Member

soreau commented Feb 17, 2026

Thanks!

if ipc isn’t available on language widget, don’t render it
fixes WayfireWM#336
@soreau soreau merged commit 441412a into WayfireWM:master Feb 17, 2026
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.

2 participants

Comments