diff --git a/src/Hyprpaper.hpp b/src/Hyprpaper.hpp index fd563fd..c7bed0a 100644 --- a/src/Hyprpaper.hpp +++ b/src/Hyprpaper.hpp @@ -34,7 +34,7 @@ public: std::vector> m_vMonitors; bool m_bIPCEnabled = true; - std::string explicitConfigPath; + std::string m_szExplicitConfigPath; void removeOldHyprpaperImages(); void preloadAllWallpapersFromConfig(); diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 4d68203..c09cba9 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -4,17 +4,17 @@ CConfigManager::CConfigManager() { // init the entire thing - std::string CONFIGPATH; - if (g_pHyprpaper->explicitConfigPath == "") { + std::string configPath; + if (g_pHyprpaper->m_szExplicitConfigPath == "") { const char *const ENVHOME = getenv("HOME"); - CONFIGPATH = ENVHOME + (std::string) "/.config/hypr/hyprpaper.conf"; + configPath = ENVHOME + (std::string) "/.config/hypr/hyprpaper.conf"; } else { - CONFIGPATH = g_pHyprpaper->explicitConfigPath; + configPath = g_pHyprpaper->m_szExplicitConfigPath; } std::ifstream ifs; - ifs.open(CONFIGPATH); + ifs.open(configPath); if (!ifs.good()) { Debug::log(CRIT, "Hyprpaper was not provided a config!"); diff --git a/src/main.cpp b/src/main.cpp index c60c501..a360c4b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,7 @@ int main(int argc, char** argv, char** envp) { // starts g_pHyprpaper = std::make_unique(); - g_pHyprpaper->explicitConfigPath = configPath; + g_pHyprpaper->m_szExplicitConfigPath = configPath; g_pHyprpaper->init(); return 0;