Skip to content

Fix opening file when --outdir#186

Merged
nschloe merged 1 commit intonschloe:mainfrom
hugovk:main
Apr 17, 2026
Merged

Fix opening file when --outdir#186
nschloe merged 1 commit intonschloe:mainfrom
hugovk:main

Conversation

@hugovk
Copy link
Copy Markdown
Contributor

@hugovk hugovk commented Apr 17, 2026

On macOS, when I run:

tuna import.log --outdir /tmp/my-dir

It only opens a blank about:blank page in Chrome.

This is because it's trying to do webbrowser.open_new_tab("/tmp/my-dir/index.html") but it needs the file:// protocol, so .as_uri(). And we'd better .resolve() in case of relative dirs.

Also, we don't threading.Thread() here, because it opens the URL without blocking, and exits. Removing it also makes it faster.

@nschloe nschloe merged commit ddff852 into nschloe:main Apr 17, 2026
3 checks passed
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.

2 participants