Re: X11 newbie
Re: X11 newbie
- Subject: Re: X11 newbie
- From: William Davis <email@hidden>
- Date: Thu, 18 Dec 2008 04:17:44 -0500
Jeremy, wouldn't he have to log out (at least) and back in to make the
bashrc get re-read?
WD
On Dec 17, 2008, at 11:23 PM, Jeremy Huddleston wrote:
Can you try 2.3.2_rc4 ... your xterms should inherit your login
environment correctly and more consistently (the "first" xterm was
previously a little different than the others in this regard).
On Dec 17, 2008, at 19:20, Marty Fix wrote:
On Dec 17, 2008, at 9:34 PM, Jeremy Huddleston wrote:
On Dec 17, 2008, at 18:19, Marty Fix wrote:
Hi all,
I am having an issue with X11, I think. I have installed
Gnucash using Fink. Once it was installed, executing the command
"gnucash" from an xterm window did not start the program. The
nice people on the gnucash mailing list said I needed to type
in . /sw/bin/init.sh. Once I did this, Gnucash ran just fine
when typing the command "gnucash". The problem is, every time I
close that xterm window or start the X11 application fresh, it
will not recognize "gnucash". I have to type in the init.sh
command before it will run.
Any ideas on how I can get the gnucash application to work
without typing in the init.sh command?
You need to make sure your environment is setup right in your
xterm. That '. /sw/bin/init.sh' essentially tells your shell
"execute everything in /sw/bin/init.sh to set up your
environment". You have some files that setup your shell
environment for every user on your system (/etc/profile and /etc/
bashrc) as well as similar files for each user (~/.profile and
~/.bashrc). I'd recommend doing something like this to get it
setup for your system (from a terminal prompt):
sudo sh -c 'echo ". /sw/bin/init.sh" >> /etc/bashrc'
After doing that, you should be able to execute any of the fink
commands from a new terminal.
Thanks for the input Jeremy
I executed the command above and my /etc/bashrc file now looks like
this
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
. /sw/bin/init.sh
This did not surprise me, but it seams to have no effect on the
xterm windows in X11. I quit X11 several times and opened several
new windows and it still did not understand the gnucash command or
any Fink commands. What it did do is make the gnucash command work
in a regular terminal window. The app appears to run normally when
launched from a standard terminal window. So is my best option to
run it from a terminal window and not from the xterm window?
Once again, thanks for the help
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden
William Davis
frstanATbellsouthDOTnet
Mac OS X.5.6 Darwin 9.5.0
XQuartz 2.3.2_rc3 (xorg-server 1.4.2-apple27)
Mac Mini Intel Duo @ 1.86 GHz
Mundus vult decepi, ego non
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden