Starting D-BUS
Ralf Habacker
ralf.habacker at freenet.de
Thu Nov 9 22:29:51 CET 2006
Ralf Habacker schrieb:
> Ralf Habacker schrieb:
>
>> Stephan Kulow schrieb:
>>
>>
>>> Am Donnerstag, 9. November 2006 15:28 schrieb Peter Kümmel:
>>>
>>>
>>>
>>>> Hi Paulo,
>>>> does this patch help?
>>>>
>>>>
>>>> $ svn diff cmake
>>>> Index: cmake/dbus-launch.bat.cmake
>>>> ===================================================================
>>>> --- cmake/dbus-launch.bat.cmake (revision 364)
>>>> +++ cmake/dbus-launch.bat.cmake (working copy)
>>>> @@ -12,5 +12,5 @@
>>>> start bin\dbus-daemon --config-file=bus\build-session.conf
>>>> ) else (
>>>> @echo "starting global dbus daemon"
>>>> - start c:/Programme/dbus/bin/dbus-daemon --session
>>>> + start %PROGRAMFILES%/dbus/bin/dbus-daemon --session
>>>> )
>>>>
>>>>
>>>>
>>> It won't - it will complain it can't find c:\programme\dbus\etc\session.conf.
>>> I fixed it for me in replacing --session
>>> with --config-file %DBUSDIR%\etc\session.conf - but I still could not attack
>>> KDE programs to that dbus daemon
>>>
>>>
>>>
>> which means to init the environment in the following way.
>>
>> set DBUSDIR=<dbus-location>
>> set PATH=%DBUSDIR%\bin;%PATH%
>>
>> The real problem is that the installation path in defined on
>> configuretime by cmake and hardcoded into config.h
>>
>> config.h
>> <snip>
>> #define DBUS_SYSTEM_CONFIG_FILE "C:/Programme/dbus/etc/system.conf"
>> #define DBUS_SESSION_CONFIG_FILE "C:/Programme/dbus/etc/session.conf"
>> </snip>
>>
>> Installing into another location which will happens on windows (english
>> version program installation path: C:\Program Files\ german version
>> installation path c:\Programme) will not work at now.
>>
>> One possible solution may be to locate the session and system bus config
>> file for --session and --system options may be relative to dbus-daemon
>> path in main.c. Are the other solutions known ?
>>
>>
>>
in windbus svn there is now a patch which allows relative pathes in
config files and command line parameters called working directory.
The working directory is one level above the dbus-daemon executable. Now
the command lines
dbus-daemon --session
or
dbus-daemon --config-file=etc/session.conf
are working.
Also config files entries inthe form
<servicedir>data/dbus-1/services</servicedir>
are possible.
Ralf
More information about the Kde-windows
mailing list