[Qt-interest] QFileDialog::getOpenFileName error when running as root
Bob Babcock
wssddc at nospam.wssddc.com
Mon Oct 17 04:20:44 CEST 2011
Marius Cirsta <mforce2 at gmail.com> wrote in
news:CANO0Vk67Xv0toy9B0UNggC73teVS+N1z+sN5g-kQN7yrGYF1JQ at mail.gmail.com:
> When it gets to QFileDialog::getOpenFileName it fails to open the
> native KDE file dialogue with this error:
>
> kdeinit4: Shutting down running client.
> klauncher(2029) kdemain: No DBUS session-bus found. Check if you have
> started the DBUS server.
I'm mostly a Windows guy, but I have the following in the setup notes I
have been keeping for my Fedora system:
To make an icon that runs dolphin file manager as root under Fedora 10, use
kdesu dbus-launch dolphin %i -caption "%c" "%u"
I'm on Fedora 15 now, but still using the above. For a program that's set
UID, maybe try just dbus-launch without kdesu.
More information about the Qt-interest-old
mailing list