DBus in PATH in Windows
Ogden, Nick
nick.ogden at usa.g4s.com
Thu Jan 12 02:45:15 PST 2012
Thanks Thomas,
In that case, it seems that the only issue I face is where DBus attempts to read the bus configuration file from. Will the binary directory also be searched or must the path to the config file be provided explicitly?
Regards,
Nick
-----Original Message-----
From: dbus-bounces+nick.ogden=usa.g4s.com at lists.freedesktop.org [mailto:dbus-bounces+nick.ogden=usa.g4s.com at lists.freedesktop.org] On Behalf Of Thomas Sondergaard
Sent: 12 January 2012 10:38
To: dbus at freedesktop.org
Subject: Re: DBus in PATH in Windows
On 12-01-2012 10:22, Ogden, Nick wrote:
> 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 don't find it strange or awkward.
> 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.
It's a feature of D-Bus
> 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.
evil or not, not depending on the PATH is one less thing that can go wrong.
> Will the QtDBus bindings search the application binary directory for the
> DBus daemon or does they rely entirely on the system PATH?
It works. Code was recently added to D-Bus to make it also look in the
directory where the dbus-1.dll resides, to make D-Bus launch work from
e.g. browser plugins.
Cheers,
Thomas
_______________________________________________
dbus mailing list
dbus at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
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.
More information about the dbus
mailing list