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: Emacs Environment Variables Date: Sat, 24 Nov 2007 14:38:30 +0100 Message-ID: <1CF4E827-71FC-4CEB-813C-2C561273681B@Web.DE> References: <7e3068b0-defa-4b37-9092-182b521f5f50@e23g2000prf.googlegroups.com> <3568102A-B060-4D1F-B7B5-7944386B07A9@Web.DE> <20071124124821.GA5409@ono.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1195911547 12396 80.91.229.12 (24 Nov 2007 13:39:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2007 13:39:07 +0000 (UTC) Cc: emacs list , Phi To: Ismael Valladolid Torres Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 24 14:39:14 2007 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 1IvvDz-00036L-3v for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 14:39:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvvDk-0000Z6-GX for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 08:38:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IvvDT-0000YU-Gk for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 08:38:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IvvDR-0000XA-QB for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 08:38:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IvvDR-0000Ww-Ly for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 08:38:37 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IvvDQ-0003TX-Rx for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 08:38:37 -0500 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 24521B4C73FB; Sat, 24 Nov 2007 14:38:33 +0100 (CET) Original-Received: from [195.4.210.125] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1IvvDM-0001Ov-00; Sat, 24 Nov 2007 14:38:33 +0100 In-Reply-To: <20071124124821.GA5409@ono.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX18d3scBjfQmyJK2Kp15Pcd1uGU+KUdeGyfK0tsR StJrGWTiyydvC1ndsLbFY7dpQ2YeNPGHHTBZPihvLNXQblVWCb 0ld0YXVcjxqME9RiT/pg== X-detected-kernel: by monty-python.gnu.org: 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:49468 Archived-At: Am 24.11.2007 um 13:48 schrieb Ismael Valladolid Torres: > I am afraid he means running emacs from an icon in its window manager > menu. Then it doesn't honor .bashrc, as it wasn't run from a bash > session. I did not understand the message this way, although I though of login =20= and non-login interactive sessions. > > If running Debian or Ubuntu he could move important env definitions > into /etc/environment. I am sure there are ways to do this on Fedora > or Mandriva systems. There is also /etc/profile which is read by bash if it's launched as =20 a login shell. If a user does not have ~/.profile, then a bash login =20 shell reads ~/.bash_login. When this file sets important environment =20 variables like LANG or LC_CTYPE, then the user's environment will =20 have set these values from login time at the login screen. All other =20 processes will inherit from this environment, including X, will which =20= pass this on to all clients launched via menu entries =96 and maybe =20 also via icons on the desktop or in the dock (but I am guessing, I'm =20 mostly on Mac OS X or Solaris with OpenWindows). ~/.bashrc would not =20 need to contain that many basic settings if it can "delegate" some to =20= ~/.bash_login or ~/.profile. IMO bash is a bit too complicated to be used as a user's default shell. -- Greetings Pete <] o __o |__ o HPV, the real ___o /I -\<, |o \ -\),-% high speed! ___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________