-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make spawned process inherit from user shell profile
- Loading branch information
Maxime Mangel
committed
Aug 21, 2023
1 parent
d9616d2
commit 25344a2
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -352,7 +352,10 @@ module Process = | |
psi.EnvironmentVariables.[key] <- value | ||
psi.WorkingDirectory <- workingDir | ||
psi.CreateNoWindow <- false | ||
psi.UseShellExecute <- false | ||
// This is needed in order to load the users profile | ||
// For example, on OSX Python is installed as python3 | ||
// and user often alias it to python in their profile | ||
psi.UseShellExecute <- true | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
MangelMaxime
Member
|
||
psi.RedirectStandardOutput <- redirectOutput | ||
|
||
// TODO: Make this output no logs if we've set silent verbosity | ||
|
This breaks the
runSyncWithOutput
function, which admittedly is not used at the moment.UseShellExecute = true
doesn't allow redirecting stdin/stdout/stderr.