Skip to content

[Questions] Why is the path_class not used internally? #32

@XSven

Description

@XSven

The constructor new() contains lines like

$self->{data}        = $ENV{XDG_DATA_HOME}   || "$local\\.local\\share\\";
...
$self->{data}        = $ENV{XDG_DATA_HOME}   || "$home/.local/share/";

Why is the path_class attribute not used to created the fallback dirs if the XDG_ environment variables are not set

$self->{data}        = $ENV{XDG_DATA_HOME}   || $self->_dir($local, '.local', 'share');
...
$self->{data}        = $ENV{XDG_DATA_HOME}   || $self->_dir($home, '.local', 'share');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions