From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-dev+bounces-41037-garchives=archives.gentoo.org@lists.gentoo.org>) id 1OIjzz-0004tF-FT for garchives@archives.gentoo.org; Sun, 30 May 2010 15:00:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FE37E0825; Sun, 30 May 2010 15:00:18 +0000 (UTC) Received: from gateway16.websitewelcome.com (gateway16.websitewelcome.com [69.56.206.4]) by pigeon.gentoo.org (Postfix) with SMTP id 64E25E0819 for <gentoo-dev@lists.gentoo.org>; Sun, 30 May 2010 14:59:41 +0000 (UTC) Received: (qmail 513 invoked from network); 30 May 2010 15:04:32 -0000 Received: from gator871.hostgator.com (174.120.29.34) by gateway16.websitewelcome.com with SMTP; 30 May 2010 15:04:32 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=basementcode.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=C8pleXxgnfqX9USfUa0oAlqDfmONqUICrgnYPlfIB6uuXEBfQr/2ypAdQm6oOz+bKToO6jlsfFstFLt5nDR5ljVt1OI4rcRxsXOUFxi27HFDkn9KHlWz5kqiZqN81AQ0; Received: from adijon-152-1-39-86.w83-194.abo.wanadoo.fr ([83.194.181.86]:35558 helo=[192.168.1.156]) by gator871.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <chris@basementcode.com>) id 1OIjzJ-0007Qo-P5 for gentoo-dev@lists.gentoo.org; Sun, 30 May 2010 09:59:42 -0500 Message-ID: <4C027D51.6010101@basementcode.com> Date: Sun, 30 May 2010 10:59:29 -0400 From: Christopher Harvey <chris@basementcode.com> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] showing file diffs as root X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator871.hostgator.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - basementcode.com X-Archives-Salt: d430e8f3-0167-4e21-8fc8-1605d2938509 X-Archives-Hash: 148285fbb3b00a027f939ea0f45b3f59 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello gentoo-dev, I'm working on an app for GSoC that needs to show a diff of two files to the user. Right now I've just been calling meld from the python os.system call. I tried running my application as root to show diffs of system files that belong to root. I got this error: Traceback (most recent call last): File "/usr/bin/meld", line 90, in <module> meldapp.main() File "/usr/lib/meld/meldapp.py", line 982, in main app = MeldApp() File "/usr/lib/meld/meldapp.py", line 562, in __init__ self.prefs = MeldPreferences() File "/usr/lib/meld/meldapp.py", line 435, in __init__ super(MeldPreferences, self).__init__("/apps/meld", self.defaults) File "/usr/lib/meld/prefs.py", line 92, 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://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 haven't looked into why this is happening very much because calling os.system("meld file1 file2 &") in python is putting up so many red flags in my head it's not funny. If anybody could tell me the proper gentoo/linux/python way to present a root level diff to a user running a program through su or sudo I'd really appreciate the help. thanks, Chris - -- My GnuPGP key at: www.basementcode.com/public_key.txt -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMAn1RAAoJEDqfZIFeqFH7brQH/RqeUmCHuopa+SufkzNNT4Ys 7IJArQCik3vBLJLpeTM3gf3NL3KMWjyzlxxQ8L74KAhItPuA3cVUQKQrSnOCBiDa y6yfDttBbOptOtcUYn7WkXQDm+BYEdpviMfjtym5ZF2nlGOMzZMxknP4ywXnhLZN q2169haoG0p1g0D11q2H9B4Vk++PUil7VLgzOfAOcLQ9YpFDkXIdxy5FRaRkx8K4 lcPfmzFha8OkdBpsXPJdhtY5pmzOEf+ziprDlyD7eCkE1xAkRNhjsNtEz9CTXeLh l46/tUCZTx+aX9ABW0m13Ache8jGN36+TvsRzRKfzqaMJ0z/wEOeESooPFYHnl0= =FxxJ -----END PGP SIGNATURE-----