LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2011, 11:16 AM   #1
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Rep: Reputation: 10
Launching application which need another window fails from shell


Hello,
I hope I wrote correct title to this thread, since I am not sure where does this problem comes from, or what causes it.

When I try to launch application which runs in another window (not inside shell), it always fails with this kind of message: (example from gnome-terminal)

Code:
** (gnome-terminal:2477): WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

Failed to get the session bus: 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.
Falling back to non-factory mode.
Failed to summon the GConf demon; exiting.  Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details -  1: Failed to get connection to session: 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.)
I am running it as root, have GNOME installed and running, and also fresh install of gconf.

Could you please help me or guide me to correct answer/solution for this problem? I heard this was considered as bug in past, but I haven't found good solution or am not that good using google.

Thanks much for any help.
 
Old 02-12-2011, 11:24 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Do non-GNOME applications work (such as xterm)?
 
Old 02-12-2011, 11:38 AM   #3
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Yes, without any problems or warning messages.
 
Old 02-12-2011, 01:01 PM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
What distro are you using?

Do you have D-Bus installed and running in the background?
 
Old 02-13-2011, 04:10 AM   #5
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Debian Sqeeze, on amd64 architecture. Environment (Gnome) is installed from original iso image, downloaded from debian.org.
 
Old 02-13-2011, 09:11 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Do you have D-Bus installed and is it running as a daemon?
 
Old 02-13-2011, 12:05 PM   #7
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for your answer, I am quite novice when it comes to Gnome (and maybe Linux at all), but as D-Bus should be installed and running as daemon. So from ps aux, there is dbus-daemon runnig twice, and dbus-launch once. Here is exact output:
Code:
root@computer:/# ps aux|grep dbus
101       1367  0.0  0.0  23672  1396 ?        Ss   16:12   0:00 /usr/bin/dbus-daemon --system
skyer     1806  0.0  0.0  11876   428 ?        Ss   16:13   0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager
skyer     1809  0.0  0.0  26104   780 ?        S    16:13   0:00 /usr/bin/dbus-launch --exit-with-session x-session-manager
skyer     1810  0.0  0.0  23652  1304 ?        Ss   16:13   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root      2399  0.0  0.0   7548   836 pts/0    S+   17:59   0:00 grep dbus
Note: I don't have any user called 101 in my system. I suspect it to be some kind of name resolution fail - from /etc/passwd:
"messagebus:x:101:103::/var/run/dbus:/bin/false. Thanks for help.
 
Old 02-13-2011, 12:07 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
I might not be able to help further since I'm not very familiar with the inner workings of desktop environments, it's just that many DEs have components that need to communicate with D-Bus or will otherwise fail.
 
Old 02-13-2011, 12:21 PM   #9
SkyerSK
Member
 
Registered: Oct 2010
Location: Europe
Distribution: Gentoo
Posts: 206

Original Poster
Rep: Reputation: 10
Thanks for reply,
this problem occurs only when running as root. I don't know much about graphical environments neither, so this is kinda mysterious for me.

(Edited.)

Last edited by SkyerSK; 02-13-2011 at 12:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
launching an installed application in hardy raphtor Linux - Newbie 8 04-12-2009 02:23 AM
Launching X application from a Brandz zone crisostomo_enrico Solaris / OpenSolaris 4 10-08-2007 06:01 AM
launching a program from a C++ application Error1312 Programming 7 02-25-2004 09:18 AM
How to bring up application window to front from shell script. aleksas_m Linux - General 2 08-21-2003 02:22 PM
launching an application when X starts... DKnight Linux - Newbie 13 06-08-2003 08:43 AM


All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration