mirror of
https://github.com/polybar/polybar.git
synced 2026-03-01 13:50:06 +00:00
feat(config): Try to load config.ini (#2324)
* Added .ini extension check to default config * Added change to changelog and man page * Added change to changelog and man page * removed .vscode folder * removed new lines in changelog
This commit is contained in:
@ -303,12 +303,23 @@ namespace file_util {
|
||||
if (exists(confpath)) {
|
||||
return confpath;
|
||||
}
|
||||
|
||||
string iniConfPath = confpath.append(".ini");
|
||||
if (exists(iniConfPath)) {
|
||||
return iniConfPath;
|
||||
}
|
||||
}
|
||||
|
||||
if (env_util::has("HOME")) {
|
||||
confpath = env_util::get("HOME") + "/.config/polybar/config";
|
||||
if (exists(confpath)) {
|
||||
return confpath;
|
||||
}
|
||||
|
||||
string iniConfPath = confpath.append(".ini");
|
||||
if (exists(iniConfPath)) {
|
||||
return iniConfPath;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user