You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README documentation shows an example configuration that includes environment variable syntax: README.md:155
However, the current implementation doesn't actually support environment variable expansion. config.rs:24-26
The download_dir field is defined as a plain String type and the configuration loading process directly deserializes the TOML content without any variable substitution: config.rs:107-113
Expected Behavior:
Users should be able to use environment variables like $STU_ROOT_DIR/Downloads in their config.toml file and have them properly expanded.
Actual Behavior:
The literal string $STU_ROOT_DIR/Downloads is used as the directory path, potentially creating a directory named $STU_ROOT_DIR instead of expanding the variable.
The configuration example in the README was only meant to show that the default values would be those values, but it is certainly confusing, so it seems like it would be a good idea to revise the README.
In any case, it seems convenient to have environment variables expanded, so that sounds like a good idea. I'll take a look at the pull request. Thank you.
Activity
lusingander commentedon Aug 5, 2025
The configuration example in the README was only meant to show that the default values would be those values, but it is certainly confusing, so it seems like it would be a good idea to revise the README.
In any case, it seems convenient to have environment variables expanded, so that sounds like a good idea. I'll take a look at the pull request. Thank you.