My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/applications/misc/polybar/remove-hardcoded-etc.diff

13 lines
440 B

diff --git a/src/utils/file.cpp b/src/utils/file.cpp
index 9511ad61..d3d82b99 100644
--- a/src/utils/file.cpp
+++ b/src/utils/file.cpp
@@ -322,7 +322,7 @@ namespace file_util {
possible_paths.push_back(xdg_config_dir + suffix + ".ini");
}
- possible_paths.push_back("/etc" + suffix + ".ini");
+ possible_paths.push_back("@out@" + suffix + ".ini");
for (const string& p : possible_paths) {
if (exists(p)) {