Skip to content

Conversation

@SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented Jun 14, 2018

PR Summary

Leverage the -WorkingDirectory parameter on pwsh.exe to set the initial location.

Fix #5705

PR Checklist

@TravisEz13
Copy link
Member

Your commit isn't associated with your github id. Can you fix that?

set workingdirectory to user home on shortcut
Copy link
Contributor

@bergmeister bergmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if you have tested it and it works.

Target="[$(var.ProductDirectoryName)]pwsh.exe"
Target="[$(var.ProductDirectoryName)]pwsh.exe"
Arguments="-WorkingDirectory ~"
WorkingDirectory="$(var.ProductDirectoryName)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems we can remove the line.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will remove.

@TravisEz13
Copy link
Member

I'd suggest addressing @iSazonov 's comment

@TravisEz13 TravisEz13 merged commit b25c1f6 into PowerShell:master Jun 20, 2018
@SteveL-MSFT SteveL-MSFT deleted the shortcut-homedir branch June 20, 2018 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installer should start PS Core with user's home dir as the working dir

4 participants