[Qt-interest] QDBusConnection::sessionBus isn't connected when no X started
Pau Garcia i Quiles
pgquiles at elpauer.org
Sat May 9 10:48:49 CEST 2009
On Sat, May 9, 2009 at 9:47 AM, michael kapelko <kornerr at gmail.com> wrote:
> 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.
What operating system and distribution are you using? It seems like
it's building DBUS passing the "--with-x" flag to "configure"
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the Qt-interest-old
mailing list