mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
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:
parent
071f7aea82
commit
1b0a5eb54a
1 changed files with 1 additions and 1 deletions
|
@ -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'}";
|
||||
|
|
Loading…
Reference in a new issue