kvirc / KVIrc

The KVIrc IRC Client
http://www.kvirc.net/
GNU General Public License v2.0
240 stars 75 forks source link

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

Closed ctrlaltca closed 5 months ago

ctrlaltca commented 5 months ago

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")