Skip to content

Some environment variables, defined in hyprland.conf, don't show up in printenv or echo output #8204

Answered by autofool
izmyname asked this question in Q&A
Discussion options

You must be logged in to vote

uwsm users should use systemd environment for variables. systemd-environemnt reads all files from $HOME/.config/environment.d/ on login. e.g.

/home/user/.config/environment.d/rust.conf
-----------------------------------------------------
RUST_HOME=$HOME/.config/rust
CARGO_HOME=$RUST_HOME/cargo
RUSTUP_HOME=$RUST_HOME/rustup

Plus, it expands the variables defined previously. For example, in hyprland if I echo $CARGO_HOME then the output will be $RUST_HOME/cargo while it should be /home/user/.config/rust/cargo.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@autofool
Comment options

Answer selected by izmyname
@izmyname
Comment options

@kai-tub
Comment options

@izmyname
Comment options

@izmyname
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants