feat: add $HOME to valid path

This commit is contained in:
Alexis 2018-12-03 20:12:34 +01:00
parent 812a7a9861
commit 2ec34e4adb
1 changed files with 2 additions and 0 deletions

View File

@ -15,12 +15,14 @@ waybar::Client::Client(int argc, char* argv[])
config_file = getValidPath({ config_file = getValidPath({
"$XDG_CONFIG_HOME/waybar/config", "$XDG_CONFIG_HOME/waybar/config",
"$HOME/.config/waybar/config",
"$HOME/waybar/config", "$HOME/waybar/config",
"/etc/xdg/waybar/config", "/etc/xdg/waybar/config",
"./resources/config", "./resources/config",
}); });
css_file = getValidPath({ css_file = getValidPath({
"$XDG_CONFIG_HOME/waybar/style.css", "$XDG_CONFIG_HOME/waybar/style.css",
"$HOME/.config/waybar/style.css",
"$HOME/waybar/style.css", "$HOME/waybar/style.css",
"/etc/xdg/waybar/style.css", "/etc/xdg/waybar/style.css",
"./resources/style.css", "./resources/style.css",