feat: add IPC support (unix only)#1691
Open
Apsapeh wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello!
I've just added support for the IPC via Unix sockets. At this moment it supports only window creation, but you can easily add new functionality. Also added '--no-ipc' cli flag to prevent any IPC and start as normal process (even if it enabled in config). And added 'enable_ipc' config option.
On startup, Rio tries to connect to the existing IPC server. Otherwise, it starts the IPC server.
New windows started in the last working directory, just Quality of Life. Same behave I saw in Ghostty and it really handy.
Also, it brights significant RAM usage improvement. On my machine, 50 windows only consume 500 MiB (and start soooo fast)
P.S. Sorry for grammar mistakes in this PR and code comments, I'm not native English
Closes #868