Starting D-BUS
Ralf Habacker
ralf.habacker at freenet.de
Thu Nov 9 16:40:01 CET 2006
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 ?
>
>
there are also hardcoded pathes in some config files, which may require
adding some dynamic variable support in config files like indicated
below by the %DBUSDIR% term
C:\Daten\windbus-build>type etc/session.conf
<!-- This configuration file controls the per-user-login-session message
bus.
Add a session-local.conf and edit that rather than changing this
file directly. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration
1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Our well-known bus type, don't change this -->
<type>session</type>
<listen>tcp:host=localhost,port=12434</listen>
<servicedir>%DBUSDIR%/data/dbus-1/services</servicedir>
<snip>
</busconfig>
or to make sure, that before accessing config files from dbus-daemon the
current path is set to %DBUSDIR% to be able to use relative path like
shonw in the following example
<servicedir>data/dbus-1/services</servicedir>
Any other ideas ?
> Ralf
>
>
>
>
>
>
>> Greetings, Stephan
>> _______________________________________________
>> Kde-windows mailing list
>> Kde-windows at kde.org
>> https://mail.kde.org/mailman/listinfo/kde-windows
>>
>>
>
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>
More information about the Kde-windows
mailing list