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

Fix possible crash when URI parse fails #55

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Fix possible crash when URI parse fails #55

merged 1 commit into from
Jan 9, 2024

Conversation

andydotxyz
Copy link
Member

Finally tracked down what could have caused the macOS reports

Fixes #40

@@ -31,7 +31,7 @@ func (t *Terminal) handleOSC(code string) {

func (t *Terminal) setDirectory(uri string) {
u, err := storage.ParseURI(uri)
if err == nil {
if err != nil {
// working around a Fyne bug where file URI does not parse host
Copy link
Member

Choose a reason for hiding this comment

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

Is there an upstream bug tracking this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if it is still an issue or what the details are - it was so long ago.
But it doesn't relate to this fix ironically - the issue here was that it was using the url when the parse failed instead of when it succeeded...

@andydotxyz
Copy link
Member Author

No objections in a week...

@andydotxyz andydotxyz merged commit 11c68aa into master Jan 9, 2024
10 checks passed
@andydotxyz andydotxyz deleted the fix/40 branch January 9, 2024 09:37
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.

Panic upon launch
2 participants