Environment variables in config

peshua19

Member
May 25, 2018
897
0
16
Hello guys,

I googled Internet looking for an answer on my question, but I didn’t found… So I decided to ask it here.

Is there a way to use environment shell’s variables inside a rtorrent’s config file?
Let’s say I have defined env variable RTDBASE = /share/rtorrent/download . I would like to use it now in the config file. May I? Is it even possible?
directory = $RTDBASE

Thank you
Have a nice day
 

simur612

Member
May 25, 2018
879
0
16
You can write something like

$directory = getenv("RTDBASE");

or

$directory = $_ENV["RTDBASE"];