[Interest] Qt, running as root (sudo/setuid), DBus and OS X

René J.V. Bertin rjvbertin at gmail.com
Fri Sep 16 14:22:03 CEST 2016


Hi,

Is it possible to use Qt-based applications on OS X that run with elevated privileges (= as root), in general and if they need to connect to the user's session dbus?

Cf. 

%> sudo -E /opt/local/bin/qdbus -qt=qt5 --system
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Could not connect to D-Bus server: org.freedesktop.DBus.Error.NoMemory: Not enough memory
Exit 1
%<

Thanks,
René



More information about the Interest mailing list