mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
@@ -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'}";
|
||||
|
||||
Reference in New Issue
Block a user