[Qt-interest] QDBusConnection::sessionBus isn't connected when no X started
michael kapelko
kornerr at gmail.com
Sat May 9 09:47:32 CEST 2009
Hello.
Running QDBusConnection::sessionBus under a user with no X started
yields the following QDBusError:
'dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11
initialization failed'.
When running under a user with X started, everything's just fine.
I need to run an application as a daemon under a user (root) with no X started.
Running 'dbus-launch ./myapp' does not solve anything as it creates a
new session bus for that application only, whereas I want to access
"global" D-Bus to:
1) run only a single instance of the app;
2) control the running instance through invoking switches: './myapp
--reloadConfig' (for use in scripts).
How to solve the problem?
Thanks.
More information about the Qt-interest-old
mailing list