Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] meld - will not run in GUI from root

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

[SOLVED] meld - will not run in GUI from root

  • Quote

Post by Joseph_sys » Tue Apr 07, 2009 3:46 pm

I have a problem running meld from root:

Code: Select all

# meld
Traceback (most recent call last):
  File "/usr/bin/meld", line 90, in <module>
    meldapp.main()
  File "//usr/lib64/meld/meldapp.py", line 942, in main
    app = MeldApp()
  File "//usr/lib64/meld/meldapp.py", line 604, in __init__
    self.prefs = MeldPreferences()
  File "//usr/lib64/meld/meldapp.py", line 492, in __init__
    prefs.Preferences.__init__(self, "/apps/meld", self.defaults)
  File "//usr/lib64/meld/prefs.py", line 91, in __init__
    self._gconf.add_dir(rootkey, gconf.CLIENT_PRELOAD_NONE)
glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/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.)
it runs OK as user but not in root.
Last edited by Joseph_sys on Tue Apr 07, 2009 7:08 pm, edited 1 time in total.
Top
Raniz
l33t
l33t
User avatar
Posts: 967
Joined: Sat Sep 13, 2003 12:30 pm
Location: Varberg, Sweden
Contact:
Contact Raniz
Website

  • Quote

Post by Raniz » Tue Apr 07, 2009 4:24 pm

Can you run other gui applications as root?

You may have to allow root to open connections to the X server with

Code: Select all

$ xhost +
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Tue Apr 07, 2009 4:28 pm

Where do you enable it?

Code: Select all

# xhost +
access control disabled, clients can connect from any host
Top
Raniz
l33t
l33t
User avatar
Posts: 967
Joined: Sat Sep 13, 2003 12:30 pm
Location: Varberg, Sweden
Contact:
Contact Raniz
Website

  • Quote

Post by Raniz » Tue Apr 07, 2009 4:37 pm

That command enables anyone to open connections to your X-server.

Try starting the application after you've run that (you only need to run it once per X session)
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Tue Apr 07, 2009 4:45 pm

Raniz wrote:That command enables anyone to open connections to your X-server.

Try starting the application after you've run that (you only need to run it once per X session)
Doesn't go:

Code: Select all

xhost + syscon4
syscon4 being added to access control list
when I type "meld" still the same output.
Top
Raniz
l33t
l33t
User avatar
Posts: 967
Joined: Sat Sep 13, 2003 12:30 pm
Location: Varberg, Sweden
Contact:
Contact Raniz
Website

  • Quote

Post by Raniz » Tue Apr 07, 2009 4:54 pm

You missunderstood me
as user:

Code: Select all

$ xhost +
then as root:

Code: Select all

$ name-of-application
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Tue Apr 07, 2009 5:24 pm

Raniz wrote:You missunderstood me
as user:

Code: Select all

$ xhost +
then as root:

Code: Select all

$ name-of-application
application "meld" as user is working OK,
but when I try run meld when I su as root I have a problem.

Where is the "access control list"?
Top
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

Re: meld - will not run in GUI from root

  • Quote

Post by timeBandit » Tue Apr 07, 2009 6:10 pm

You're barking up the wrong tree.
Joseph_sys wrote:glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://www.gnome.org/projects/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.)
xhost controls access to the X server. The problem here, as the error message states, is that meld cannot connect to the GNOME configuration daemon, gconfd. It should have started with your GNOME session. Check the Troubleshooting section at the URL provided (http://www.gnome.org/projects/gconf/) for diagnostic tips.

Edit: The linked page doesn't offer much help, sorry. :( Some relevant threads (search here for Gconf ORBit error) with a variety of possible remedies:
[topic=714919]GConf error when alternate user[/topic]
[topic=715553]Gedit as root[/topic]
[topic=468652]GConf Error[/topic]
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

Re: meld - will not run in GUI from root

  • Quote

Post by Joseph_sys » Tue Apr 07, 2009 6:58 pm

timeBandit wrote:... It should have started with your GNOME session. Check the Troubleshooting section at the URL provided (http://www.gnome.org/projects/gconf/) for diagnostic tips.
I'm not using GNOME, I'm using KDE.
I couldn't find much on that page how to use gconftool-2 to allow root access to use gnome X
Top
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

Re: meld - will not run in GUI from root

  • Quote

Post by timeBandit » Tue Apr 07, 2009 7:05 pm

Joseph_sys wrote:I'm not using GNOME, I'm using KDE.
There's your trouble, then. KDE would of course not start a GNOME component but meld needs it.

Use gconftool-2 --spawn to start the daemon (as your normal user). As noted in some of the threads I provided, when you become root you may need to use su - to ensure root has the correct environment to connect to gconfd.
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

Re: meld - will not run in GUI from root

  • Quote

Post by Joseph_sys » Tue Apr 07, 2009 7:08 pm

timeBandit wrote: Use gconftool-2 --spawn to start the daemon (as your normal user). As noted in some of the threads I provided, when you become root you may need to use su - to ensure root has the correct environment to connect to gconfd.
Solved, the solution was:
su -
Top
timeBandit
Bodhisattva
Bodhisattva
User avatar
Posts: 2719
Joined: Fri Dec 31, 2004 1:54 am
Location: here, there or in transit

  • Quote

Post by timeBandit » Tue Apr 07, 2009 7:32 pm

Excellent. :)

Moved from Portage & Programming to Desktop Environments. (Yes, sort of an afterthought, but I didn't notice until now. :roll:)
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

  • Quote

Post by Joseph_sys » Tue Apr 07, 2009 7:38 pm

I never used it in the past "su -" and meld always worked from within root; so something must have change recently.
Thanks for the help.
Top
ferg
Guru
Guru
User avatar
Posts: 542
Joined: Fri Nov 15, 2002 9:38 am
Location: Cambridge, UK
Contact:
Contact ferg
Website

Running Meld from cfg-update (i.e. as root) fails

  • Quote

Post by ferg » Thu Apr 15, 2010 8:02 am

Hi,

I'm trying to find a decent replacement for xxdiff for use with cfg-update. Meld appears to be a good one (supports stage3 etc). However, as above my system will not run this as root. Unfortunately since cfg-update calls the file then this solution will not work with cfg-update.

Any clues?

Cheers
Ferg
(edited sorry but I did not mean to bump such an old thread. In hindsight I should have started a new thread)
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Top
Joseph_sys
Advocate
Advocate
Posts: 2731
Joined: Tue Jun 08, 2004 4:05 pm
Location: Edmonton, AB

Re: Running Meld from cfg-update (i.e. as root) fails

  • Quote

Post by Joseph_sys » Thu Apr 15, 2010 1:35 pm

Is it for updating config. files?
Why don't you use "dispatch-conf"
Top
ferg
Guru
Guru
User avatar
Posts: 542
Joined: Fri Nov 15, 2002 9:38 am
Location: Cambridge, UK
Contact:
Contact ferg
Website

  • Quote

Post by ferg » Thu Apr 15, 2010 1:46 pm

Thanks for your reply. I've used dispatch.conf in the past. but cfg-update is far easier. I've been using it for a long time now.
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Top
pjv
Guru
Guru
User avatar
Posts: 353
Joined: Wed Jul 02, 2003 12:51 pm
Location: Belgium

  • Quote

Post by pjv » Sat Nov 27, 2010 6:16 pm

You can use the same solution as with nautilus-root:

Code: Select all

sudo dbus-launch  meld
I still think this is pretty shitty. I've always used meld in etc-update as root, and it just now stopped working. Some gnome dev should make multiple users in gnome pervasive.
Top
Post Reply

17 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic