sedwards2009 / extraterm

The swiss army chainsaw of terminal emulators
https://extraterm.org
MIT License
2.51k stars 116 forks source link

Use home directory path obtained from Open Directory on macOS #352

Closed yoichi closed 3 years ago

yoichi commented 3 years ago

On macOS, Extraterm execute shell without cwd, when sessionConfig.initialDirectory is not set. It is because environment variable HOME is not set when launched from Finder/Spotlight.

issue https://github.com/sedwards2009/extraterm/issues/184

スクリーンショット 2021-07-31 12 54 46

yoichi commented 3 years ago

environment variable HOME is not set

This might be a mistake. All I've seen is that when I launch it with yarn run run, it just runs the code that uses HOME, and I'm not running my own build from the Finder / Spotlight.

Are there a way to my own build created by 'yarn run build' from Finder?

yoichi commented 3 years ago

environment variable HOME is not set

This might be a mistake. All I've seen is that when I launch it with yarn run run, it just runs the code that uses HOME, and I'm not running my own build from the Finder / Spotlight.

Are there a way to my own build created by 'yarn run build' from Finder?

I've installed the package from automated build from https://dev.azure.com/simon0627/extraterm/_build/results?buildId=758&view=artifacts&pathAsName=false&type=publishedArtifacts but cwd was still /.