Skip to content

fix: use os.tmpdir() instead of hardcoded /tmp in cookie-import-browser#748

Closed
Gonzih wants to merge 1 commit into
garrytan:mainfrom
Gonzih:fix/hardcoded-tmp-windows-cookie-import
Closed

fix: use os.tmpdir() instead of hardcoded /tmp in cookie-import-browser#748
Gonzih wants to merge 1 commit into
garrytan:mainfrom
Gonzih:fix/hardcoded-tmp-windows-cookie-import

Conversation

@Gonzih

@Gonzih Gonzih commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

One-liner. `/tmp` doesn't exist on Windows. `os` was already imported in the file, just wasn't used here.

Before: ````/tmp/browse-cookies-${browser}-${uuid}.db````
After: `os.tmpdir()` resolves to `%TEMP%` on Windows, `/tmp` on Unix.

Closes #708.


sent from mStack

Hardcoded /tmp fails on Windows where the temp directory is
%TEMP% / C:\Users\user\AppData\Local\Temp.

os.tmpdir() was already imported in the file — just wasn't used here.
A one-liner fix.

Closes garrytan#708
@garrytan

Copy link
Copy Markdown
Owner

Thanks @Gonzih — closing as stale. cookie-import-browser has been reworked since this was opened. If hardcoded /tmp is still present on current main, a fresh PR against current code would land easier.

@garrytan garrytan closed this May 10, 2026
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.

Cross-platform: hardcoded /tmp in cookie-import-browser.ts

2 participants