From f49af187bc0755f9b5be9376bfd52c0cf12c1e11 Mon Sep 17 00:00:00 2001 From: Ed Younis Date: Fri, 7 Jul 2023 13:19:35 -0400 Subject: Xdg config home support (#2047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * config: Add support for XDG_CONFIG_HOME Contributes-to: #1040 Co-authored-by: Björn Bidar Signed-off-by: Björn Bidar * config: Log used config file * config: Add GetConfigDir and minor fixes * config: fixed minor nitpicks --------- Signed-off-by: Björn Bidar Co-authored-by: Björn Bidar --- src/render/OpenGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render/OpenGL.cpp') diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 9e12610f..6091aacf 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -339,7 +339,7 @@ void CHyprOpenGLImpl::applyScreenShader(const std::string& path) { if (path == "" || path == STRVAL_EMPTY) return; - std::ifstream infile(absolutePath(path, std::string(getenv("HOME")) + "/.config/hypr")); + std::ifstream infile(absolutePath(path, g_pConfigManager->getConfigDir())); if (!infile.good()) { g_pConfigManager->addParseError("Screen shader parser: Screen shader path not found"); -- cgit v1.2.3