[haiku-development] Re: Environment Variables Behavior On Haiku

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 9 Mar 2021 21:20:30 +0100

Am 09/03/2021 um 01:42 schrieb Ryan Leavengood:

On Mon, Mar 8, 2021 at 5:34 PM Adrien Destugues <pulkomandy@xxxxxxxxx> wrote:
I can't think of cases where running a full shell script for this would be 
useful?
Yes I now regret even mentioning the idea of invoking the shell. If
you look over the profile and SetupEnvironment they do quite a bit. It
will take quite some work to replace all these shell scripts with C++
code. I am less motivated to work on that now. Maybe someone else can
do it.

Could someone enlighten me what the issue actually is? I seem to have missed most of the conversation.

If you look into the /system/data/user_launch/user file, the second row reads like:
        env /system/boot/SetupEnvironment

This just executes that shell script. The same as before the launch_daemon.

Bye,
   Axel.

Other related posts: