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: use temp_dir for getting temp folder #1898

Merged
merged 1 commit into from
Nov 8, 2022
Merged

fix: use temp_dir for getting temp folder #1898

merged 1 commit into from
Nov 8, 2022

Conversation

xJonathanLEI
Copy link
Contributor

@xJonathanLEI xJonathanLEI commented Nov 2, 2022

The temp folder for storing logs etc. is currently hard-coded to /tmp, which is not very portable as this directory doesn't exist on some platforms (e.g. Android). This PR changes to use temp_dir from std::env, which uses the exact same path as we do now on non-Android Unix systems, but a special Termux path on Android.

This helps with #1021.

@xJonathanLEI
Copy link
Contributor Author

Note that the default path used in temp_dir won't work for Termux - it likely only works for rooted Android devices. However, Termux has a patch for this so we're all good.

@xJonathanLEI xJonathanLEI temporarily deployed to cachix November 8, 2022 15:14 Inactive
@imsnif imsnif merged commit 6c79ff9 into zellij-org:main Nov 8, 2022
@xJonathanLEI xJonathanLEI deleted the fix/tempdir branch November 8, 2022 15:52
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