• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: odd behaviour of applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: odd behaviour of applications


  • Subject: Re: odd behaviour of applications
  • From: Martin Costabel <email@hidden>
  • Date: Sun, 12 Jan 2003 13:16:22 +0100

Alexander Meier wrote:
Hi Michhle,

thanks for your information.... somehow I don't believe that this is the problem though.

It is a simple PATH problem; slightly more complicated, however, than what was said before.


If it was a simple PATH problem, then why can I launch
let's say gimp from the apple's x11 terminal withouth giving the direct path, but not from the Application menu after starting X11 by double clicking?

When you use the Applications menu, the PATH and the other environment variables are the ones X11.app has inherited. If you start it by clicking on the icon, you have the absolute minimum set of environment variables. You can test this by creating a simple script containing only one line


printenv > /tmp/printenv.log

and then running this from the Applications menu. The PATH, for example, is

/usr/bin:/bin:/usr/sbin:/sbin:/Users/you:/usr/X11R6/bin

It will not find gimp in this PATH, I suppose.

Apple's X11 Terminal, OTOH, if called by its default 'xterm' command, reads some of your shell startup scripts, namely ~/.cshrc or ~/.tcshrc if you are with the default tcsh. If you set some PATH there, it will be known inside the X11 Terminal. So if you have, as Fink recommends, "source /sw/bin/init.csh" inside ~/.cshrc or ~/.tcshrc, you will have a full PATH there and gimp will be found.

If you set your shell up differently, for example with the old clean pre-Jaguar setup in ~/Library/init/tcsh/{path,environment.mine,etc}, it will not be read by the xterm from the Applications menu. This is what was bothering me and others.

You can, however, have it read *all* your shell startup scripts if you declare it to be a "login shell", that is, instead of the simple command "xterm", you call it as "xterm -ls" (change it via "Customize..."). Then you have all your environment variables available.

--
Martin
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: odd behaviour of applications (From: Alexander Meier <email@hidden>)

  • Prev by Date: Meta key on X11 don't work
  • Next by Date: Re: Meta key on X11 don't work
  • Previous by thread: Re: odd behaviour of applications
  • Next by thread: Meta key on X11 don't work
  • Index(es):
    • Date
    • Thread