3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/polybar/remove-hardcoded-etc.diff
fortuneteller2k 3016d0aeb8 polybar: 3.5.7 -> 3.6.2
Co-authored-by: Alexander Foremny <aforemny@posteo.de>
2022-04-16 08:26:44 +00:00

14 lines
440 B
Diff

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)) {