mirror of
https://github.com/polybar/polybar.git
synced 2026-03-29 11:37:01 +00:00
fix(config): Perform tilde expansion on include-file #603
This commit is contained in:
@ -231,6 +231,17 @@ namespace file_util {
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Path expansion
|
||||
*/
|
||||
const string expand(const string& path) {
|
||||
string p{path};
|
||||
if (p[0] == '~') {
|
||||
p.replace(0, 1, env_util::get("HOME"));
|
||||
}
|
||||
return p;
|
||||
}
|
||||
}
|
||||
|
||||
POLYBAR_NS_END
|
||||
|
||||
Reference in New Issue
Block a user