emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: nicholas.dokos@hp.com
Cc: org-mode <emacs-orgmode@gnu.org>,
	Richard Riley <rileyrgdev@googlemail.com>
Subject: Re: iCal export - possible timezone bug
Date: Fri, 08 May 2009 17:15:10 -0400	[thread overview]
Message-ID: <10948.1241817310@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Nick Dokos <nicholas.dokos@hp.com> of "Fri\, 08 May 2009 16\:13\:01 EDT." <8554.1241813581@alphaville.usa.hp.com>

Nick Dokos <nicholas.dokos@hp.com> wrote:

> The question is: is there a personal file that can be used for this purpose,
> 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 perhaps a
> handful of possibilities for different methods of desktop initialization.
> 

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 variable
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‐ 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=/etc/X11/Xsession.d
USERXSESSION=$HOME/.xsession
USERXSESSIONRC=$HOME/.xsessionrc

Third, it sources all the files in $SYSSESSIONDIR:

SESSIONFILES=$(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

  reply	other threads:[~2009-05-08 21:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-08 16:15 iCal export - possible timezone bug Nick Dokos
2009-05-08 16:37 ` Richard Riley
2009-05-08 20:13   ` Nick Dokos
2009-05-08 21:15     ` Nick Dokos [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-04-25 20:51 Richard Riley
2009-05-06 10:57 ` Carsten Dominik
2009-05-06 13:42   ` Richard Riley
2009-05-06 13:50     ` Carsten Dominik
2009-05-07 16:59       ` Richard Riley
2009-05-07 17:45         ` Nick Dokos
2009-05-08  7:18           ` Carsten Dominik
2009-05-08 15:02             ` Richard Riley
2009-05-08 15:09               ` Karsten Heymann
2009-05-08 15:51                 ` Richard Riley
2009-05-08 15:11               ` Nick Dokos
2009-05-08 15:27               ` Nick Dokos
2009-05-08 15:49                 ` Richard Riley
2009-05-07  4:44     ` Mario E. Munich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10948.1241817310@alphaville.usa.hp.com \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrgdev@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).