Add shell expansions to FTL

Can we allow shell-expansion in FTL's config options dealing with files?

Like

LOGFILE=~/pihole/pihole-FTL.log
GRAVITYDB=~/pihole/gravity.db

to look for the files in

/home/pi/pihole/pihole-FTL.log
/home/pi/pihole/gravity.db

(another user would use another file).

Or allow using environment variables as I'd expect them to work from the command line, like

LOGFILE=/var/log/${USERNAME}/pihole-FTL.log

Thank you for considering this.

Hmm, yes, we could add this, but I have a question: Will this do more harm than good?

For instance, will users expect that ~ relates to the user pihole-FTL is running as (which is typically different from the user they use to login to their systems)?

I wouldn't do this.

Absolute paths is the only way to be sure of the true intentions. Shortcuts and expansions are variable by nature and will cause unexpected results.

What is the problem that this FR would solve?

FTL would fit better into a multi-user environment.