Correct Win32 runtime with D-Bus 1.8.0
Submitted by Milan Crha
Assigned to D-Bus Maintainers
Created attachment 105816 proposed D-Bus patch
I found two issues in D-Bus 1.8.0 which prevent it from being properly run (and run services).
a) The _dbus_replace_install_prefix() damages Exec dir when its prefix doesn't match the build prefix. There was a typo, user 'strcat' instead of 'srcpy'. As there was also missing replace of backslashes to forward slashes, then I changed that as well.
b) User's home path doesn't always match HOMEDRIVE + HOMEPATH, thus I took the code from GLib and adapted it to D-Bus, thus the GLib can find D-Bus cookies (when D-Bus saves them to the correct folder). As an example, msys sets the two variables as: "C:" and "", which means that D-Bus was saving data into the root folder, where it might not have always access.
Patch 105816, "proposed D-Bus patch":