Bug 397520

Summary: Mac OSX Build from binary factory does not start
Product: [Applications] dolphin Reporter: Ovidiu-Florin BOGDAN <kde.kfoar>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: grave CC: elvis.angelaccio, mail
Priority: NOR    
Version First Reported In: 18.04.3   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ovidiu-Florin BOGDAN 2018-08-16 12:32:43 UTC
The Mac binary from https://binary-factory.kde.org/view/MacOS/job/Dolphin_Release_macos/ fails to start with the following error:

```
$ /Applications/dolphin.app/Contents/MacOS/dolphin
"Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"
```

I have installed `dbus` using Homebrew and started it using `brew services start dbus`, but the error persists.

Please advise or fix, as I'm told it shouldn't require DBus on Mac.
Comment 1 Julian Steinmann 2018-08-16 15:22:36 UTC
Thanks for your bug report. One of my colleagues could confirm this problem as well. According to https://stackoverflow.com/questions/9066900/krusader-crashed-on-mac-osx-10-7-2, the same problem appeared with Krusader a few years ago. Could you try whether the solution presented (running launchctl load /Library/LaunchAgents/org.freedesktop.dbus-session.plist without sudo) does work? That'd be great.
Comment 2 Ovidiu-Florin BOGDAN 2018-08-16 19:59:49 UTC
I've tried doing that, but I don't have that launch agent, even though I have dbus installed. We should write a guide for Mac users on how to install and setup dbus and put it in the KDE wiki under Mac.
Comment 3 Julian Steinmann 2018-08-16 20:07:33 UTC
That seems like a good idea, but we'll need to be able to run dbus somehow first. Please try running 'echo $DBUS_LAUNCHD_SESSION_BUS_SOCKET' and '`brew --prefix qt`/bin/qdbus'. The first command should echo a valid path, e.g. /tmp/launch-EJDiyji/unix_domain_listener. The second command should show the available services, at least org.freedesktop.DBus. If this is not the case, then there's likely a problem with the installation of dbus. I'll dig a bit deeper and see what I can find.
Comment 4 Ovidiu-Florin BOGDAN 2018-08-20 10:09:04 UTC
After I also installed Qt using brew, I got this:

$ echo $DBUS_LAUNCHD_SESSION_BUS_SOCKET
/private/tmp/com.apple.launchd.CB7Bp27AZj/unix_domain_listener

$ `brew --prefix qt`/bin/qdbus
:1.3
org.freedesktop.DBus