From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Problems starting emacs with correct environmental settings Date: Fri, 3 Jul 2009 13:12:26 +0200 Message-ID: <08E83DF7-04E8-4E67-B1DD-AA33BB611DB9@Web.DE> References: <7c8wj6gjtz.fsf@pbourguignon.anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246619629 22481 80.91.229.12 (3 Jul 2009 11:13:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 11:13:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Pascal J. Bourguignon Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 03 13:13:42 2009 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 1MMgi4-0001Q3-KH for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2009 13:13:40 +0200 Original-Received: from localhost ([127.0.0.1]:60827 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMgi3-0002o0-RX for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2009 07:13:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMghX-0002ng-76 for help-gnu-emacs@gnu.org; Fri, 03 Jul 2009 07:13:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMghS-0002l8-OE for help-gnu-emacs@gnu.org; Fri, 03 Jul 2009 07:13:06 -0400 Original-Received: from [199.232.76.173] (port=39036 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMghS-0002kz-Ip for help-gnu-emacs@gnu.org; Fri, 03 Jul 2009 07:13:02 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:36940) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MMghS-0003m4-7K for help-gnu-emacs@gnu.org; Fri, 03 Jul 2009 07:13:02 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id BD5E510292775; Fri, 3 Jul 2009 13:12:28 +0200 (CEST) Original-Received: from [91.35.229.98] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.110 #277) id 1MMggu-0003MZ-00; Fri, 03 Jul 2009 13:12:28 +0200 In-Reply-To: <7c8wj6gjtz.fsf@pbourguignon.anevia.com> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX19HudMzuqJzhbgcHS0cl2e/yNcvdfqo2WI5YMen p68nwY7NRsL6VCFmXdbIAbLinmFTydAPcgEFu89LJmboUS5SXa 5HMyatBDZLWwvafr+L6w== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:65756 Archived-At: Am 03.07.2009 um 12:08 schrieb Pascal J. Bourguignon: > Depending on the shell used by these scripts, you may edit one of the > file used by these shell to set the environment. Eg. in case of bash, > you could set your environment in ~/.bash_env or ~/.bash_login or > ~/.bashrc ; for other Bourne shells, ~/.profile or ~/.login could be > used. In the last resort, you can directly edit the X startup scrip > that is used in your configuration. Alain send me some answers privately. To me it seems that processes =20 created from the menu icons inherit only a small environment, could =20 be that of a privileged process. It obviously has some basic =20 components in PATH, but not Alain's private parts. And GNU Emacs =20 actually is opened via emacsclient, from a shell script, which is =20 passed to the launcher as " ~/..." and "~/" does not get expanded to =20 something like "/home//..." With pstree, observing such a launched process, one might find some =20 basic clues. By using a shell script that creates a login shell to =20 launch emacsclient from inside it a few problems could be cured=85 -- Greetings Pete It's not the valleys in life I dread so much as the dips. =96 Garfield