Version: (using KDE 4.3.1) OS: MS Windows Installed from: MS Windows Simply put you can open multiple instances of ktorrent on windows, in linux this is not possible and KUniqueApplication works as expected.
Does DBus run?
Yes dbus-daemon is running
it works here with trunk
Created attachment 42890 [details] dbus-win32-kuniqueapplication.patch
Hi, I've been hunting down this bug and it seems that it's related to user privileges. I'm working on Windows XP without administrator rights and I hit this bug too. I did some debugging and I tracked the problem down to DBus. In bus/services.c, in function _dbus_process_exists() there is a call to OpenProcess(). The call requests PROCESS_ALL_ACCESS: proc_handle = OpenProcess (PROCESS_ALL_ACCESS, FALSE, pid); On my system this call fails with ERROR_ACCESS_DENIED. If I change PROCESS_ALL_ACCESS to PROCESS_QUERY_INFORMATION it works. The patch above contains the relevant code change.
This works for a normal user in kontact (which is a KUniqueApplication) using mingw-w64 64bit on Windows 7 with the 4.8.0 release. If that doesn't work, please reopen the bug report.