From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: iCal export - possible timezone bug Date: Fri, 08 May 2009 17:15:10 -0400 Message-ID: <10948.1241817310@alphaville.usa.hp.com> References: <15580.1241799336@gamaville.dokosmarshall.org> <4a045fd5.0407560a.7279.ffffcc46@mx.google.com> <8554.1241813581@alphaville.usa.hp.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2XQS-00056S-1k for emacs-orgmode@gnu.org; Fri, 08 May 2009 17:16:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2XQN-00052L-BJ for emacs-orgmode@gnu.org; Fri, 08 May 2009 17:16:11 -0400 Received: from [199.232.76.173] (port=49911 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2XQN-00052D-88 for emacs-orgmode@gnu.org; Fri, 08 May 2009 17:16:07 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:30549) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M2XQM-0006Vp-T1 for emacs-orgmode@gnu.org; Fri, 08 May 2009 17:16:07 -0400 In-Reply-To: Message from Nick Dokos of "Fri\, 08 May 2009 16\:13\:01 EDT." <8554.1241813581@alphaville.usa.hp.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: org-mode , Richard Riley Nick Dokos wrote: > The question is: is there a personal file that can be used for this purpo= se, > no matter *how* one starts his or her desktop environment? I suspect that > the answer is "no", but there might be a best practice: one or two or per= haps a > handful of possibilities for different methods of desktop initialization. >=20 Assuming that /etc/X11/Xsession is actually more general than just Ubuntu, then there does seem to be a single place where things like environment var= iable definitions can be picked up: ~/.xsessionrc. First, at the top of /etc/X11/Xsession it says: # global Xsession file -- used by display managers and xinit (startx) [ But, forewarned is forearmed - the man page for Xsession (worth reading in its entirety for all the caveats) says: /etc/X11/Xsession is a Bourne shell (sh(1)) script which is run when an X Window System ses=E2=80=90 sion is begun by startx(1x) or a display manager such as xdm(1x). (Some display managers only invoke Xsession when specifically directed to so by the user; see the documentation for your display manager to find out more.) ] Second, it defines (among other things) SYSSESSIONDIR=3D/etc/X11/Xsession.d USERXSESSION=3D$HOME/.xsession USERXSESSIONRC=3D$HOME/.xsessionrc Third, it sources all the files in $SYSSESSIONDIR: SESSIONFILES=3D$(run-parts --list $SYSSESSIONDIR) if [ -n "$SESSIONFILES" ]; then set +e for SESSIONFILE in $SESSIONFILES; do . $SESSIONFILE done set -e fi Fourth, one of the files in /etc/X11/Xsession.d is 40x11-common_xsessionrc which reads in its entirety: # This file is sourced by Xsession(5), not executed. #Source user defined xsessionrc (locales and other environment variables) if [ -r "$USERXSESSIONRC" ]; then . "$USERXSESSIONRC" fi So it seems that ~/.xsessionrc is sourced very early in the desktop initialization and might serve as a universal provider of e.g. environment variables. Nick