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

Make D-Bus adaptor actually useful and use it as an IPC backend #2630

Merged
merged 6 commits into from
Apr 10, 2024

Conversation

ctrlaltca
Copy link
Contributor

KviDbusAdaptor exists since long time, but it's currently unused/quite useless.
This PR adds the necessary changes to make it working/possibly useful.

IPC is currently broken on Linux/Wayland, as the existing backend is using XAtom.
This PR also adds a D-Bus based backend for IPC, so that kvirc can detect on startup if another instance is already running and eventually pass messages to it (using kvirc -e / -x / -r).

As a bonus, you can now go full inception mode by running KVS such as:

/$system.dbus("net.kvirc.KVIrc", "/kvirc", "net.kvirc.KVIrc","ipcMessage", "session", "QString=echo ciao")

@ctrlaltca ctrlaltca changed the title Make D-Bus adaètopr actually useful and use it as an IPC backend Make D-Bus adaptor actually useful and use it as an IPC backend Apr 8, 2024
@ctrlaltca ctrlaltca merged commit c2ae7a4 into kvirc:master Apr 10, 2024
4 checks passed
@ctrlaltca ctrlaltca deleted the dbus branch April 10, 2024 07:59
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