I have a qt app with a mysql backend. I want the app to get updated whenever the database changes, as I'm planning on having other methods to change the db.
I've successfully installed the lib_mysqludf_sys UDF which allows mysql triggers to run commands via sys_exec or sys_eval. I was hoping to have the sql trigger run a small program which would connect to my main qt app over a d-bus session to force an update in the app without having to do a bunch of polling.
When I try and connect to the d-bus session I get the following error:
Cannot connect to the D-Bus session bus.
I also get an error about connecting to display:0, and I've somewhat worked around that by running: xhost +local:mysql
I figured I'd post something since I've been stuck on this for a couple days now, but I have found the following, which seems like it might be on the right track:
http://unix.stackexchange.com/questi...the-session-id
Thanks.