polybar: fix the case when config value is a path

Polybar treats 'include-file' property differently.
In particular, its value can't be enclosed in
double quotes. Fixes #185.
This commit is contained in:
Nikita Uvarov 2018-01-21 21:01:26 +01:00
parent 071f7aea82
commit 1b0a5eb54a
No known key found for this signature in database
GPG key ID: F7A5FB3A7C10EF96

View file

@ -13,7 +13,7 @@ let
let
value' =
if isBool value then (if value then "true" else "false")
else if isString value then "\"${value}\""
else if (isString value && key != "include-file") then ''"${value}"''
else toString value;
in
"${key}=${value'}";