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  |
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. 
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
|
|
|
 |
|
Different getenv("PATH") and $PATH on macos M1 (for libclang.dylib)
By: fudadmin on Wed, 04 January 2023 04:36
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: Novo on Thu, 05 January 2023 02:23
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: fudadmin on Thu, 05 January 2023 05:43
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: fudadmin on Thu, 05 January 2023 07:03
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: Oblivion on Thu, 05 January 2023 16:37
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: fudadmin on Thu, 05 January 2023 23:37
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: Novo on Thu, 05 January 2023 18:47
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: fudadmin on Fri, 06 January 2023 00:05
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: Novo on Fri, 06 January 2023 06:06
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: fudadmin on Fri, 06 January 2023 09:47
|
 |
|
Re: Different getenv("PATH") and $PATH on macos
By: Novo on Tue, 10 January 2023 16:43
|
Goto Forum:
Current Time: Tue Apr 29 22:29:24 CEST 2025
Total time taken to generate the page: 0.04256 seconds
|