Am 07/02/18 um 09:43 schrieb Stefan Wollny:
> 
> 
> Am 06/25/18 um 22:36 schrieb Stefan Wollny:
>> Hi there,
>>
>> I run amd64-current with the latest public snapshots:
>> $ dmesg | grep Open
>> OpenBSD 6.3-current (GENERIC.MP) #52: Sun Jun 24 09:59:46 MDT 2018
>> < Full dmesg at the end >
>>
>> Although I try to follow reading src-changes and topics on misc@ as
>> close as possible I might have missed something lately. Until a few days
>> ago okular and kmahjongg came up without a comment. Now I cannot start
>> them (havn't tried other KDE apps)
>>
>>
>> $ okular
>> okular(68871)/kdeui (kdelibs): Session bus not found
>> To circumvent this problem try the following command (with Linux and bash)
>> export $(dbus-launch)
>> KCrash: Application 'okular' crashing...
>> KCrash: Attempting to start /usr/local/libexec/drkonqi from kdeinit
>> KCrash: Connect
>> sock_file=/home/sw/.kde4/socket-asterix.fritz.box/kdeinit4__0
>> Warning: connect() failed: : No such file or directory
>> KCrash: Attempting to start /usr/local/libexec/drkonqi directly
>> drkonqi(78427)/kdeui (kdelibs): Session bus not found
>> To circumvent this problem try the following command (with Linux and bash)
>> export $(dbus-launch)
>>
>> ~ $ kmahjongg
>> kmahjongg(43798)/kdeui (kdelibs): Session bus not found
>> To circumvent this problem try the following command (with Linux and bash)
>> export $(dbus-launch)
>> KCrash: Application 'kmahjongg' crashing...
>> KCrash: Attempting to start /usr/local/libexec/drkonqi from kdeinit
>> KCrash: Connect
>> sock_file=/home/sw/.kde4/socket-asterix.fritz.box/kdeinit4__0
>> Warning: connect() failed: : No such file or directory
>> KCrash: Attempting to start /usr/local/libexec/drkonqi directly
>> drkonqi(34562)/kdeui (kdelibs): Session bus not found
>> To circumvent this problem try the following command (with Linux and bash)
>> export $(dbus-launch)
>>
>> What did I miss / what am I doing wrong here?
>>
>> In /etc/rc.conf.local I have:
>> pkg_scripts=freshclam clamd messagebus avahi_daemon cupsd smartd
>> cups_browsed
>>
>> (cups isn't working for a looong time but that should be a different thread)
>>
>> Anyone got a clue what might be wrong with my system or what knob to
>> turn? Or is this just a temporary annnoyance that ought to go away in a
>> short time?
>>
>> TIA.
>>
>> Best,
>> STEFAN
>>
>>
> 
> Now that I am back in business having updated the system (new dmesg at
> the end) and all installed packages I tried again ... yet neither
> kmahjongg nor okular are working:
> 
> ~ $ pkg_info | grep kmah
> kmahjongg-4.14.3p3  Mah Jongg solitare board game for KDE
> libkmahjongg-4.14.3p1 common library for Mah Jongg-based KDE games
> 
> ~ $ pkg_info | grep oku
> libmusicbrainz5-5.0.1p4 library for audio metadata lookup (v5)
> okular-4.14.3p7     KDE document viewer
> 
> ~ $ kmahjongg
> kmahjongg(25428)/kdeui (kdelibs): Session bus not found
> To circumvent this problem try the following command (with Linux and bash)
> export $(dbus-launch)
> KCrash: Application 'kmahjongg' crashing...
> KCrash: Attempting to start /usr/local/libexec/drkonqi from kdeinit
> KCrash: Connect
> sock_file=/home/sw/.kde4/socket-asterix.fritz.box/kdeinit4__0
> Warning: connect() failed: : No such file or directory
> KCrash: Attempting to start /usr/local/libexec/drkonqi directly
> drkonqi(30570)/kdeui (kdelibs): Session bus not found
> To circumvent this problem try the following command (with Linux and bash)
> export $(dbus-launch)
> 
> ~ $ okular
> okular(31187)/kdeui (kdelibs): Session bus not found
> To circumvent this problem try the following command (with Linux and bash)
> export $(dbus-launch)
> KCrash: Application 'okular' crashing...
> KCrash: Attempting to start /usr/local/libexec/drkonqi from kdeinit
> KCrash: Connect
> sock_file=/home/sw/.kde4/socket-asterix.fritz.box/kdeinit4__0
> Warning: connect() failed: : No such file or directory
> KCrash: Attempting to start /usr/local/libexec/drkonqi directly
> drkonqi(23688)/kdeui (kdelibs): Session bus not found
> To circumvent this problem try the following command (with Linux and bash)
> export $(dbus-launch)
> 
> 
> ~ $ doas rcctl ls started
> apmd
> avahi_daemon
> clamd
> cron
> cups_browsed
> cupsd
> freshclam
> messagebus
> ntpd
> pflogd
> postgresql
> sensorsd
> slaacd
> smartd
> smtpd
> sndiod
> sshd
> syslogd
> 
> 
> Has anyone a clue what might be missing? Wrong permissions?
> 
> Any hint welcome. TIA!
> 

OK - I found a solution (though I still do not understand what has changed):

Somehow the dbus-daemon is not recognized although started as 'rcctl ls
started' shows. And

$ cat /var/log/daemon | grep dbus
[ ... ]
Jul  3 09:39:34 asterix dbus-daemon[56322]: [system] Activating service
name='org.freedesktop.ColorManager' requested by ':1.1' (uid=0 pid=34041
comm="/usr/local/sbin/cupsd -C /etc/cups/cupsd.conf -s /") (using
servicehelper)
Jul  3 09:39:34 asterix dbus-daemon[56322]: [system] Successfully
activated service 'org.freedesktop.ColorManager'
Jul  3 09:42:04 asterix dbus-daemon[56322]: [system] Activating service
name='org.freedesktop.GeoClue2' requested by ':1.5' (uid=1000 pid=62929
comm="redshift") (using servicehelper)
Jul  3 09:42:04 asterix dbus-daemon[56322]: [system] Successfully
activated service 'org.freedesktop.GeoClue2'

Frustrated I ignored the hint on Linux and (as unpriviledged user) did
'export $(dbus-launch)' in a xterm. Et voila: kmahjongg and okular come
up if started from this very xterm - and only from this one.

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?

Thank you for your patience.

Best,
STEFAN

Reply via email to