You are not logged in.

#1 2013-10-06 02:16:45

unicod3
Member
Registered: 2013-10-06
Posts: 2
Website

GConf-WARNING **: Client failed to connect to the D-BUS daemon

Hi everybody,

I'm tyring to learn Qt and working with C++ but when I try to run my application which is below:

//firstWindow.h
#include <QMainWindow>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QLayout>


class firstWindow:public QMainWindow
{
	Q_OBJECT
	public:
	QLabel 		*lbl;
	QPushButton 	*btn;
	QLineEdit	*row;
	
	firstWindow():QMainWindow()
	{
		setWindowTitle("First Window");
		QWidget *win = new QWidget(this);
		setCentralWidget(win);


		lbl = new QLabel("Hello Universe", win);
		btn = new QPushButton("Click Click", win);
		row = new QLineEdit(win);


		QVBoxLayout *main = new QVBoxLayout(win);
		main->addWidget(win);
		
		QHBoxLayout *nextTo = new QHBoxLayout();
		nextTo->addWidget(row);
		nextTo->addWidget(btn);
		main->addLayout(nextTo); 

		resize(200,50);
		win->show();
	

	}   
};

after compiling it, I get that error :

#qmake -project
#qmake
#make
# ./QtFirstWindow
(process:21806): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(process:21806): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(process:21806): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

I'm new on linux an Qt so what does the error mean? How can I fix that?

Last edited by unicod3 (2013-10-06 02:20:02)

Offline

#2 2013-10-08 20:27:15

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: GConf-WARNING **: Client failed to connect to the D-BUS daemon

At first glance it appears you need to add

dbus-launch

somewhere. I'd try it before the command to run your qt app as a start.
If you just use a window manager not a desktop environment add dbus-launch to however you start that and see what happens.


You're just jealous because the voices only talk to me.

Offline

#3 2013-10-10 17:50:50

unicod3
Member
Registered: 2013-10-06
Posts: 2
Website

Re: GConf-WARNING **: Client failed to connect to the D-BUS daemon

It did not work, still gives the error and I have xfce and gnome 3 on my Arch. It gives the same result in the both of my desk. environment

Offline

Board footer

Powered by FluxBB