• 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: App crashes when launched from finder, but not when launched from debugger or command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App crashes when launched from finder, but not when launched from debugger or command line


  • Subject: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • From: Greg Guerin <email@hidden>
  • Date: Mon, 17 Nov 2008 17:55:11 -0700

Rick Mann wrote:

AFAICT, the app doesn't explicitly do anything different based on the environment.

The working directory is different, too. A relative pathname might work in one case but fail in the other.


It's best to interpret the word "environment" to mean all the inherited process context, not just environment variables.

BTW, you can fiddle with environment variables on the command-line using the 'env' command. In particular, 'env -i /path/to/executable' might be revealing. Examples:
/usr/bin/printenv
/usr/bin/env -i /usr/bin/printenv


  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: App crashes when launched from finder, but not when launched from debugger or command line
      • From: Jack Repenning <email@hidden>
  • Prev by Date: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Next by Date: break points in library not found
  • Previous by thread: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Next by thread: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Index(es):
    • Date
    • Thread