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

Allow configuring log folder through environment #21

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

NoTuxNoBux
Copy link
Contributor

@NoTuxNoBux NoTuxNoBux commented Feb 10, 2021

This allows configuring the log folder through the environment variable GSTREAMER_UNITY_LOG_FILE_PATH. This allows you to do something like this in Unity:

Environment.SetEnvironmentVariable("GSTREAMER_UNITY_LOG_FILE_PATH", Application.persistentDataPath);

... which can be important for protected environment such as UWP, which limit where you can write these kinds of files.

If it is not set, the current default is used (the current working directory) as fallback.

I didn't know what to do about tabs and spaces, since it appears this file is a mixed bag already 😄.

Might help for #15.

This allows configuring the log folder through the environment variable
GSTREAMER_UNITY_LOG_FILE_PATH. If it is not set, the current default is
used (the current working directory).
@mrayy
Copy link
Owner

mrayy commented Mar 15, 2022

Definitely helpful!

@mrayy mrayy merged commit 8afc11a into mrayy:master Mar 15, 2022
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