Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

When installing using MSI, set the working directory of the shortcut to the user home directory#7072

Merged
TravisEz13 merged 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
SteveL-MSFT:shortcut-homedirSteveL-MSFT/PowerShell:shortcut-homedirCopy head branch name to clipboard
Jun 20, 2018
Merged

When installing using MSI, set the working directory of the shortcut to the user home directory#7072
TravisEz13 merged 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
SteveL-MSFT:shortcut-homedirSteveL-MSFT/PowerShell:shortcut-homedirCopy head branch name to clipboard

Conversation

@SteveL-MSFT

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

Copy link
Copy Markdown
Member

PR Summary

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

Fix #5705

PR Checklist

@TravisEz13

Copy link
Copy Markdown
Member

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

set workingdirectory to user home on shortcut

@bergmeister bergmeister left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread assets/Product.wxs Outdated
Target="[$(var.ProductDirectoryName)]pwsh.exe"
Target="[$(var.ProductDirectoryName)]pwsh.exe"
Arguments="-WorkingDirectory ~"
WorkingDirectory="$(var.ProductDirectoryName)"

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.