Presumably on Linux at least apps could just expose a DBus API? The machinery for this is already in place as far as I can tell.