Skip to content

download_dir configuration doesn't support environment variable expansion despite README documentation #76

Closed

Description

@kkoshin

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.

Activity

  1. lusingander commented on Aug 5, 2025

    @lusingander
    Owner

    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.

  2. added
    enhancement
    on Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions