* ksh, session manager and environment variables
@ 1996-07-08 4:00 Marc Roussel
1996-07-08 4:00 ` Marek Pola
0 siblings, 1 reply; 2+ messages in thread
From: Marc Roussel @ 1996-07-08 4:00 UTC (permalink / raw)
I'm having a bit of an oddball problem. If I set the C shell as my
default login shell, when I login to the console, the path set in my
.cshrc gets propagated to all X applications started from the Session
Manager Applications menu. However, I've recently decided to switch to
the Korn shell. Using that as my default shell, X applications started
from the Session Manager get a tiny, useless path (probably a hard-wired
default). Note that I'm not talking about shells in Xterms; they (of
course) read .profile and .kshrc when xterm is started with the -ls
switch. The applications I'm talking about are things like Netscape
which need a properly set path to start up helpers. I've tried
everything to fix this. Both my .profile and my .kshrc set the path
(and export it, in case you're wondering). I've made by .profile Bourne
shell compatible, just in case dxsession was trying to treat it as an sh
script. I also tried to set the path in .X11Startup, but that didn't
work either. Has anyone else seen this before?
By the way, our news feed is erratic (at best) so I would
appreciate email replies. I will post a summary of all responses I
receive to this newsgroup.
Marc R. Roussel
(roussel@henri.chem.uleth.ca)
Department of Chemistry
University of Lethbridge
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: ksh, session manager and environment variables
1996-07-08 4:00 ksh, session manager and environment variables Marc Roussel
@ 1996-07-08 4:00 ` Marek Pola
0 siblings, 0 replies; 2+ messages in thread
From: Marek Pola @ 1996-07-08 4:00 UTC (permalink / raw)
In article <31E14ADD.41C6@henri.chem.uleth.ca>,
Marc Roussel <roussel@henri.chem.uleth.ca> wrote:
>I'm having a bit of an oddball problem. If I set the C shell as my
>default login shell, when I login to the console, the path set in my
>..cshrc gets propagated to all X applications started from the Session
>Manager Applications menu. However, I've recently decided to switch to
>the Korn shell. Using that as my default shell, X applications started
>from the Session Manager get a tiny, useless path (probably a hard-wired
>default).
>...
Yes, I've noted this behaviour. Furtunately, some of my X apps does not need
any paths or other stuff, so I just point with the complete path in my
session-manager. For those apps who need something extra, I define the
application like:
sh -c ". .profile; app-name"
or I write a two line script that will first set the environment variables as
needed and then start the application. I know this is crude, but it works.
First law of engineering: do not touch anything that works.
Regards
Marek Pola
Tetra Pak
Lund, Sweden
------------------------------------------------
"Jim, his brains's gone!" - Dr McCoy, Star Trek.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-07-08 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-08 4:00 ksh, session manager and environment variables Marc Roussel
1996-07-08 4:00 ` Marek Pola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox