--Sig_/Z76iSWP58k4+8ZyJ/+UFCcX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, some more thoughts on D-Bus: 1. The KF5-ports still say "Don't forget that dbus needs to be started [...] before any KDE programs will launch." This is - fortunately - no longer quite accurate, as KF5 programs will generally launch, indeed, although some may be lacking some functionality. 2. This new robustness makes the problem much less severe, but also much easier to overlook. And so I'm again thinking about a way to auto-start dbus, if needed. As you (Ren=C3=A9), know, in RKWard we had been working around this, by adding our own unconditional launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist during startup. Now, this wasn't a good approach, in particular for using the "-w" option. So now I tried replacing this with: if (!QDBusConnection::sessionBus().isConnected()) { QProcess::execute ("launchctl", QStringList () << "load" << "/Library/LaunchAgents/org.freedesktop.dbus-session.plist"); }=20 However, this did not work as expected: Qt will only try to connect to the session bus, once, and if that fails, launching dbus will not help, anymore (not for the running process, anyway). I've looked around a bit, but could not find any other trivial way to check for a running session bus. But then, isn't that one of the reasons for launchctl, starting daemons exactly once? So right now I'm testing a plain #ifdef Q_OS_MAC QProcess::execute ("launchctl", QStringList () << "load" << "/Library/LaunchAgents/org.freedesktop.dbus-session.plist"); #endif early on in the startup sequence (before anything tries using DBus). This seems to work, nicely. Is there any obvious drawback (other than whatever impact it has on startup time)? Regards Thomas --Sig_/Z76iSWP58k4+8ZyJ/+UFCcX Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZOZzJAAoJEDkVkd8YWMu2tBMP/j87P4wILKsu32EXwC41CACP flCw6fj8Sz9AQXkNsZ3W43PmWfaRYHCLtvyDHqEhBWtOZWB+DAf8HtN4CqRR4/dB X/PUWAyOvnphFddNuxRYuQZfrh7EejIm3mgevhx2RuDh6hH3t/b7J6WvLQ5hrVnz VkjVy0XWvec74WWMINXmz3DhQreG4EGeykE/Oa8tUqadybAvSM6OUpmNmfuSQ3eL 7dFXBQH1h69o2CrwrVdETQbAKRGQ+8HD8CRVHE79Lgh1lfigiIQnugOSv3hhWTA5 6Zdy/P06JpvCczuHU77LT/QOcq7EgsjI74NoeZSckF8qtyEkyM+sUFMOZO9tPMJw kl50JieSpZrxN7BRLbgMlMCw2WW5/mJ9JxdHS08Kw/8Bqy+C7KXS5abT7W/7FPSg GiuWgha7N8RAFPBwDhVaiP7ogo7I9q+F+ajhp4IKIZo6Bq4zKr4Jqtu1TvPdW+fu sb6ohYy96izy4NSISsJQZsouvRkHH8af3+D1FyLncjvxFKSq5V9qKej9BzfrxYfO iH5AK35gKHskuAWftihM5b8E6hJlVbVi+/TgW/BojZ25RscxPCvuNAPSOXr4D4NZ ZFKNORi8Lrm1z2CVFmpil5bKuo5CNCsEH2DW6gqG45Ni+jvw6Wh9Jt16IPe63psB uSUqWwPmw9Xx457JAZ0+ =kD8Z -----END PGP SIGNATURE----- --Sig_/Z76iSWP58k4+8ZyJ/+UFCcX--