Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Different getenv("PATH") and $PATH on macos M1 (for libclang.dylib)
Re: Different getenv("PATH") and $PATH on macos [message #59511 is a reply to message #59495] Tue, 10 January 2023 16:43 Go to previous message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
fudadmin wrote on Fri, 06 January 2023 03:47

My strong guess that the PATH is set by the shell. But by the wrong shell...

Default shell is stored in /etc/passwd in in Linux and BSD.
If you look at the content of this file in MacOS you won't even find your account there.
Basically, all shell-related stuff is ignored by MacOS, IMHO.
It looks like PATH for GUI apps (launched by launchd) is set by launchd.

BTW, path to libs is set by LD_LIBRARY_PATH in Linux and BSD. Smile
PATH is used to locate executables.

I know how to trace loader in Linux but have no idea how to do that with GUI apps in MacOS launched with launchd. :-/


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compilation on Linux +GUI,X11
Next Topic: Cannot link with obj generated on custom build step.
Goto Forum:
  


Current Time: Tue Apr 29 17:31:24 CEST 2025

Total time taken to generate the page: 0.00755 seconds