From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: "source" shell commands
Date: Sun, 25 Mar 2007 20:56:04 +1000 [thread overview]
Message-ID: <87ircpfv7f.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.1397.1174795525.7795.help-gnu-emacs@gnu.org
Matthew Flaschen <matthew.flaschen@gatech.edu> writes:
>
>> The first and easiest is to change the shell that executes your
>> .Xsession (or equivalent) to a login shell.
>
> Any idea how I would do that in Ubuntu (gNewSense really)?
>
> Matthew Flaschen
>
>
Well, I've never really run KDE, but all the different window managers pretty
much follow a similar pattern AFAIK. I'm not running Ubuntu, but plain Debian,
so I'll assume they are pretty similar. However, I do know that KDE does have
some 'quirks' that make life a bit more tricky in some situations (for example,
setting app colours and/or geometry is not as easy as just setting values in
.Xdefaults/Xresources - you have to do some settings inside the KDE 'control
panel'.
The trick is to identify which of the startup scripts are the one which spawns
the window manager - normally this is done with a 'exec window_manager'.
Unfortunately, I can't rmember which one it is just now (and I've heavily
customized my startup on my home machine). From memory it is one of
/etc/gdm/Xsession (if your running gdm)
/etc/X11/xdm/Xsession (if your running xdm)
If you change one of these to run as a login shell, then your .bash_profile (or
whatever) will be executed. This script then sources the client startup scripts
(i.e. at its most basic, this could be just starting an xterm, but normally it
will start a window manager.). As the window manager is started as a subprocess
of your login shell, its environment inherits your login environment and as all
the processes it starts (such as emacs) is a subprocess of that, they will also
inherit your environment settings.
If you can't work out which file it is, let me know and I'll have a look at my
work machine (which has not been 'customized' - I may even be able to look at
one of my co-workers machines as quite a few of them run Ubuntu.
HTH
Tim
P.S. Back in the bad old days when I use to do java development and was using
JDE, this is exactly what I did to ensure I could just start emacs from the
window manager (without first starting an xterm and sourcing .bash_profile. In
those days I was running RH, but from memory, that was when I first had to work
this out)
PPS - now, I don't have to struggle with that horrible java stuff. Now I really
appreciate the simple environment of perl and ruby (and for fun CL). The only
constant over the past 12 years has been emacs!
--
tcross (at) rapttech dot com dot au
next prev parent reply other threads:[~2007-03-25 10:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1360.1174733204.7795.help-gnu-emacs@gnu.org>
2007-03-24 13:33 ` "source" shell commands Tassilo Horn
2007-03-24 14:35 ` David Kastrup
2007-03-24 15:24 ` Barry Margolin
2007-03-24 21:21 ` Matthew Flaschen
2007-03-25 0:08 ` Matthew Flaschen
2007-03-25 10:33 ` Peter Dyballa
2007-03-25 10:55 ` Matthew Flaschen
2007-03-25 11:53 ` Peter Dyballa
2007-03-26 0:44 ` Matthew Flaschen
2007-03-26 8:16 ` Peter Dyballa
2007-03-26 9:59 ` Matthew Flaschen
[not found] ` <mailman.1412.1174823876.7795.help-gnu-emacs@gnu.org>
2007-03-25 22:36 ` Tim X
2007-03-26 0:53 ` Matthew Flaschen
[not found] ` <mailman.1432.1174870550.7795.help-gnu-emacs@gnu.org>
2007-03-26 11:30 ` Tim X
[not found] ` <mailman.1381.1174771402.7795.help-gnu-emacs@gnu.org>
2007-03-25 2:46 ` Tim X
2007-03-25 4:03 ` Matthew Flaschen
[not found] ` <mailman.1397.1174795525.7795.help-gnu-emacs@gnu.org>
2007-03-25 10:56 ` Tim X [this message]
2007-03-26 8:13 ` Tassilo Horn
2007-03-26 8:57 ` Matthew Flaschen
[not found] ` <mailman.1436.1174899596.7795.help-gnu-emacs@gnu.org>
2007-03-26 9:08 ` Tassilo Horn
2007-03-26 9:55 ` Matthew Flaschen
2007-03-25 2:32 ` Tim X
2007-03-25 2:59 ` Matthew Flaschen
2007-03-24 10:44 Matthew Flaschen
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ircpfv7f.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/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.
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).