Skip to content

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

Open
Gonzih wants to merge 1 commit intogarrytan:mainfrom
Gonzih:fix/hardcoded-tmp-windows-cookie-import
Open

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

Conversation

@Gonzih
Copy link
Copy Markdown

@Gonzih Gonzih commented Apr 1, 2026

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
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

1 participant