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 issue #134 with tempfile on windows #135

Merged
merged 4 commits into from
Jan 22, 2024
Merged

Conversation

NeffIsBack
Copy link
Contributor

@NeffIsBack NeffIsBack commented Dec 4, 2023

Fix #134:
Tempfile adds a handy attribute to the file which deletes the file after closing. This prevents sqlite3 on windows to connect to the file unfortunetly. This is to be expected according to the documentation https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile

In python 3.12 there is apperently a better solution, but for now removing the file manually is probably the best solution

@mpgn
Copy link
Collaborator

mpgn commented Dec 4, 2023

This is specific to windows ?

@NeffIsBack
Copy link
Contributor Author

NeffIsBack commented Dec 4, 2023

This is specific to windows ?

Yes, crashing on windows but working flawlessly on linux

@NeffIsBack NeffIsBack added the windows Things related specifically to running on Windows label Dec 7, 2023
nxc/protocols/smb/firefox.py Outdated Show resolved Hide resolved
@NeffIsBack NeffIsBack added the reviewed code Label for when a static code review was done label Dec 22, 2023
@Marshall-Hallenbeck
Copy link
Collaborator

Ran tests and they passed 👍

@Marshall-Hallenbeck Marshall-Hallenbeck merged commit f46c5ea into main Jan 22, 2024
2 checks passed
@Marshall-Hallenbeck Marshall-Hallenbeck deleted the neff-win-firefox branch January 22, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This Pull Request fixes a bug requires testing reviewed code Label for when a static code review was done windows Things related specifically to running on Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Win Bin - Firefox not working anymore?
3 participants