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

Create data dir for InstanceChecker if it does not exist #1503

Merged

Conversation

Jan200101
Copy link
Contributor

wxSingleInstanceChecker::Create cannot create a lock in a directory that does not exist, so we check it if doesn't and make it.

Comment on lines +385 to +386
if (!wxDirExists(data_dir))
wxMkdir(data_dir);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the entire branch can also be removed with just a call to wxMkdir, we don't really care if it succeds or not since wxSingleInstanceChecker::Create will inform the user of any problems

@sirjuddington sirjuddington merged commit f826d13 into sirjuddington:master May 23, 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