Am 07/04/18 um 16:13 schrieb Stuart Henderson:
> On 2018-07-04, Stefan Wollny <stefan.wol...@web.de> wrote:
>> Somehow the dbus-daemon is not recognized although started as 'rcctl ls
>> started' shows. And
> 
> That is a system dbus-daemon but you didn't have a session dbus-daemon.
> 
>> Finally I added 'export $(dbus-launch)' to .xinitrc (plus kdeinit4) and
>> those KDE apps now do get started as they did until last week.
>>
>> Is this expected behaviour? I didn't find anything related to this in
>> the man pages or the FAQ - if it is could s.o. please point my sore eyes
>> to the relevant documentation?
> 
> There was a fallback in the dbus port for the case where the session bus
> was missing, it was removed for a bit, but it seems few people bother
> to read the dbus pkg-readme and most software which needs it doesn't
> fail with a very informative error message, so it has gone back in
> for now...
> 
> The fallback is not great because it means that each program wanting
> to use dbus has its own separate session bus - there's only supposed to
> be a single one.
> 
> You are supposed to run the session bus like this:
> 
> $ cat /usr/local/share/doc/pkg-readmes/dbus-*                                 
>                
> $OpenBSD: README-main,v 1.3 2017/11/01 06:27:31 ajacoutot Exp $
> 
> +-----------------------------------------------------------------------
> | Running dbus-1.12.8p0v0 on OpenBSD
> +-----------------------------------------------------------------------
> 
> To start a session bus instance of dbus-daemon (needed by applications
> installing /usr/local/share/dbus-1/services/*.service files), add the
> following lines to your Xsession script before starting the window manager
> (see dbus-launch(1) for more info) -- note that some session/login managers,
> like gnome-session(1) already handle this automatically.
> 
> e.g. console login: ~/.xinitrc
> if [ -x /usr/local/bin/dbus-launch -a -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
>         eval `dbus-launch --sh-syntax --exit-with-session`
> fi
> 
> e.g. graphical display manager: ~/.xsession
> if [ -x /usr/local/bin/dbus-launch -a -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
>         eval `dbus-launch --sh-syntax --exit-with-x11`
> fi
> 
> 

Thank you, Stuart! Excellent explanation and precise help, right to the
point!

Reply via email to