From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: emacs process-environment under gnome Date: Sat, 29 Nov 2008 20:36:19 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1228009253 8999 80.91.229.12 (30 Nov 2008 01:40:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2008 01:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 30 02:41:55 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6bJq-00048R-ML for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 02:41:54 +0100 Original-Received: from localhost ([127.0.0.1]:48252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6bIg-0007nn-Me for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 20:40:42 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.motzarella.org!motzarella.org!news.motzarella.org!barmar Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-X-Trace: news.motzarella.org U2FsdGVkX1+5Dcch6qOJEBcSntimEVgdqJlSr3eROCgj8nAA69qBSoj5+povYiVAYlHIoAJSq2I4iN2QZSkc5J2BiHqlz32R6/W5cLL37owDsqCAaXl6jMeNibuH2JiPkiOPwDrENII= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 30 Nov 2008 01:36:19 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18MjnVZjmfb6aUOsTpABx6tRum8rMKM6To= Cancel-Lock: sha1:KnQhasiEIcxsiYavW/kzRq38E2o= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Mail-Copies-To: nobody Original-Xref: news.stanford.edu gnu.emacs.help:164915 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60243 Archived-At: In article , phorminx@web.de wrote: > When I start emacs under gnome using gnome's application menu, the emacs > process is started by root (ppid 1). I find this very confusing. Why is this It's not started by pid 1. Gnome forks a child process, and this process forks a grandchild process to execute emacs. The child process exits immediately after, so that Gnome doesn't have to wait for it. Whenever a process's parent exits, the ppid becomes 1. > so? For me, the main problem is that this way emacs (the variable > process-environment) doesn't know anything about the environment variables I > like to use (which are defined in my .bashrc). I think you need to put "source .bashrc" in your .xinitrc. > > As you might guess I am new to gnome (but I've used emacs for some time). > What are other people doing? Start emacs via a shell script? > > Thank you! > ____________________________________________________________________ > Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? > Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123 -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***