Thank you Britgirl. I eventually found a solution and it seems that its the same as you.
I installed first dbus-launch (dnf install dbus-x11) but it did not work.
Then I ran dbus-update-activation-environment –all and it still did not work.
I rebooted the server and it then functioned perfectly. I am almost sure it works because of the dbus-x11 install, but at least people can try the second command.