On 19 September 2016 at 07:56, Thiago Macieira <thiago.macie...@intel.com> wrote: > On sexta-feira, 16 de setembro de 2016 14:22:03 PDT René J.V. Bertin wrote: >> Hi, >> >> Is it possible to use Qt-based applications on OS X that run with elevated >> privileges (= as root), in general and > > It's possible, but not recommended. > >> if they need to connect to the user's session dbus? > > It's not possible to connect to another user's session bus.
DBUS wasn't designed to allow this sort things. Although non-trivial, it is technically possible but brings a bunch of security issues and requires programs to run on both sides (the user and root in this case). It all boils down to socket bridging and port forwarding. There's a tool that would do that automatically for you (can't remember the name), but you can achieve that with socat and the likes too. I'm not trying to say that this is what René should do, I'm just saying that it is technically possible, for the sake of correctness. Chris > > -- > Thiago Macieira - thiago.macieira (AT) intel.com > Software Architect - Intel Open Source Technology Center > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest