Open Bryan2333 opened 1 year ago
I look up the related information in wiki. The wiki says the value of variable will be treated as raw string. I am a bit confused with it. If this is the case, why $HOME
is being parsed as /home/username
and XDG_CONFIG_HOME
is being put as raw string?
because XDG_DATA_HOME is defined as an env inside the config and hyprland doesn't treat that as env because it sources env before that
I see. So is it possible to add a function to reuse the environment variable which is newly defined in the config file
I find a temporary workaround. Define the variable as configuration variable and use it.
$XDG_DATA_HOME=$HOME/.local/share
env = XDG_DATA_HOME,$XDG_DATA_HOME
env = GOPATH,$XDG_DATA_HOME/go
yes, thats why this is open and labelled a bug
I define some environment variables in hyprland.conf
When I run
echo $GOPATH
in terminal, what I expect is/home/username/.local/share/go
. But it prints$XDG_DATA_HOME/go
.