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

Try to avoid tempfile collisions in more places #1419

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

nebel
Copy link
Contributor

@nebel nebel commented Nov 1, 2023

Issues such as #1409 were reported by several users, and cleaning up their temp files seemed to solve the problem. We already have PlatformHelpers.GetTempFileName() (which is used in DalamudUpdater.cs) as a method for getting a more "collision resistant" temp file path, so I replaced other calls to Path.GetTempFileName() with that.

I also added an xivlauncher_ prefix to our temp file names as I figure it's polite to let users know who is creating their temp files, and it could be useful for detecting bugs in the future (in case we are somehow responsible for this excessive temp file pollution, for example). If you'd prefer not to change this part, let me know and I'll remove it.

This is my first PR to FFXIVQuickLauncher so let me know if there's anything else I should do.

@goaaats goaaats merged commit 5d52c5d into goatcorp:master Nov 1, 2023
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