Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch with Terminal: Add fallback to PowerShell on exception #253

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RedyAu
Copy link

@RedyAu RedyAu commented Jun 24, 2024

@github-actions github-actions bot added translation Translations have been added. source Source code has been changed here. labels Jun 24, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello there!
As you are a first time contributor please read our Code of Conduct as well our Contribution Guideline.

@RedyAu RedyAu changed the title Launch with terminal: Add fallback to PowerShell on exception Launch with Terminal: Add fallback to PowerShell on exception Jun 24, 2024
mode: ProcessStartMode.normal, runInShell: true);
List<String> launchWslHome = ['wsl', '-d', distribution, '--cd', '~'];
try {
await Process.start('wt', launchWslHome);
Copy link
Author

Choose a reason for hiding this comment

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

Had to remove runInShell otherwise exception is not provided to our process. I don't know if this has other unwanted side effects, but it does launch wt correctly if it is installed. Please confirm.

@RedyAu
Copy link
Author

RedyAu commented Jun 24, 2024

Sorry, hungarian lang should be pushed to a different PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source Source code has been changed here. translation Translations have been added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant