mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-11-16 22:25:59 +01:00
style: Rename some variables
This commit is contained in:
parent
7c3108327b
commit
dc46514d7e
3 changed files with 7 additions and 7 deletions
|
@ -34,7 +34,7 @@ public:
|
||||||
std::vector<std::unique_ptr<SMonitor>> m_vMonitors;
|
std::vector<std::unique_ptr<SMonitor>> m_vMonitors;
|
||||||
|
|
||||||
bool m_bIPCEnabled = true;
|
bool m_bIPCEnabled = true;
|
||||||
std::string explicitConfigPath;
|
std::string m_szExplicitConfigPath;
|
||||||
|
|
||||||
void removeOldHyprpaperImages();
|
void removeOldHyprpaperImages();
|
||||||
void preloadAllWallpapersFromConfig();
|
void preloadAllWallpapersFromConfig();
|
||||||
|
|
|
@ -4,17 +4,17 @@
|
||||||
CConfigManager::CConfigManager() {
|
CConfigManager::CConfigManager() {
|
||||||
// init the entire thing
|
// init the entire thing
|
||||||
|
|
||||||
std::string CONFIGPATH;
|
std::string configPath;
|
||||||
if (g_pHyprpaper->explicitConfigPath == "") {
|
if (g_pHyprpaper->m_szExplicitConfigPath == "") {
|
||||||
const char *const ENVHOME = getenv("HOME");
|
const char *const ENVHOME = getenv("HOME");
|
||||||
CONFIGPATH = ENVHOME + (std::string) "/.config/hypr/hyprpaper.conf";
|
configPath = ENVHOME + (std::string) "/.config/hypr/hyprpaper.conf";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
CONFIGPATH = g_pHyprpaper->explicitConfigPath;
|
configPath = g_pHyprpaper->m_szExplicitConfigPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ifstream ifs;
|
std::ifstream ifs;
|
||||||
ifs.open(CONFIGPATH);
|
ifs.open(configPath);
|
||||||
|
|
||||||
if (!ifs.good()) {
|
if (!ifs.good()) {
|
||||||
Debug::log(CRIT, "Hyprpaper was not provided a config!");
|
Debug::log(CRIT, "Hyprpaper was not provided a config!");
|
||||||
|
|
|
@ -21,7 +21,7 @@ int main(int argc, char** argv, char** envp) {
|
||||||
|
|
||||||
// starts
|
// starts
|
||||||
g_pHyprpaper = std::make_unique<CHyprpaper>();
|
g_pHyprpaper = std::make_unique<CHyprpaper>();
|
||||||
g_pHyprpaper->explicitConfigPath = configPath;
|
g_pHyprpaper->m_szExplicitConfigPath = configPath;
|
||||||
g_pHyprpaper->init();
|
g_pHyprpaper->init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue