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

ensure XDG_CACHE_HOME exists #777

Merged
merged 1 commit into from
Jun 9, 2024
Merged

Conversation

dl6tom
Copy link

@dl6tom dl6tom commented Jun 6, 2024

while packaging Horizon EDA for OpenBSD i noticed, that when launched from a freshly created user account it fails with

libc++abi: terminating due to uncaught exception of type horizon::SQLite::Error: unable to open database file
Abort trap (core dumped)

that happens cause XDG_CACHE_HOME (~/.cache in this case) does not exist in the home directory yet.

this change ensures it exists and also temporarily changes umask to ensure permissions according to XDG Base Directory Specification.

src/util/util.cpp Outdated Show resolved Hide resolved
@carrotIndustries carrotIndustries merged commit 512bba8 into horizon-eda:master Jun 9, 2024
23 checks passed
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