DBus in PATH in Windows

Ogden, Nick nick.ogden at usa.g4s.com
Thu Jan 12 01:22:06 PST 2012


Hi,

I have a very strange and awkward request from my boss, I'm sure you guys understand the kind I'm talking about. =P

I'm running DBus on Windows and using the QtDBus bindings on the application side. When kicking off an application that uses QtDBus, the DBus daemon is started if it is not already running. This, as I understand it, is a feature of the QtDBus bindings. This only seems to work when the DBus daemon (and related executables) are in the PATH. Thus I assume that the QtDBus bindings simply search the PATH for the DBus binaries and kicks off the process (perhaps via dbus-launch?).

I also assume that, since the address of the Bus is required to initiate a connection, the QtDBus bindings will call one of the DBus binaries in order to get the connection details of the Bus if it is already started. This of course, would also require that the DBus binaries be in the PATH. This coincides with my experience, as removing the DBus binaries from the PATH prevents the application (using the QtDBus bindings) from even connecting to an already running Bus.

Now my boss has it in his head that environmental variables are evil and has asked me to place all binaries, for all applications and for the DBus daemon, in the same directory. This is his idea of a 'clean' solution, the thinking being that the application binary directory will be searched first before the system PATH, as is usual on Windows. Thus my question is this.

Will the QtDBus bindings search the application binary directory for the DBus daemon or does they rely entirely on the system PATH?

Kind Regards
--
Nick Ogden
Software Engineer
G4S Technology Ltd.

nick.ogden at g4tec.com<mailto:nick.ogden at g4tec.com>
www.g4stechnology.com<http://www.g4stechnology.com/>
Challenge House,
International Drive,
Tewkesbury,
Gloucestershire,
GL20 8UQ, UK

P Please consider the environment before printing this email


________________________________
The details of this company are as follows:
G4S Technology Limited, Registered Office: Challenge House, International Drive, Tewkesbury, Gloucestershire GL20 8UQ, Registered in England No. 2382338.

This communication may contain information which is confidential, personal and/or privileged.

It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s), please note that any distribution, forwarding, copying or use of this communication or the information in it is strictly prohibited.

Any personal views expressed in this e-mail are those of the individual sender and the company does not endorse or accept responsibility for them.

Prior to taking any action based upon this e-mail message, you should seek appropriate confirmation of its authenticity.

This e-mail has been scanned for all viruses by MessageLabs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120112/ea7e8029/attachment.html>


More information about the dbus mailing list