How to make the terminal to point to specific path when launching at first run?

When launching at first time, I want to set the current working directory in the terminal to specific path ‘/home/user/foldeNname’.
No workspace is opened yet.
I know that openeing a workspace will change the PWD.

What would be best way implementing it? vscode ext / theia ext?

[original thread by Tomer Epstein]

As far as I know all terminal processes are shared on backend. So you can create Theia extenison which creates a new terminal process and keeps its identifier. The frontend can fetch and connect to it.

Alternatively you can customize the frontend terminal contribution to configure cwd for default terminal.

please also search for terminal in Spectrum history, there were already several similar Qs