> What works for GNOME is useless for KDE, and what works for KDE is useless for XFCE, which is ignored by Sway and so forth.

KDE had their own IPC thingy, DCOP, but it has been replaced with D-Bus.

Yep, using Linux in various forms since 1995.