mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 19:05:58 +01:00
* respect explicit config path for autoreload config
This commit is contained in:
parent
15544c7544
commit
4a5c3c4861
1 changed files with 8 additions and 4 deletions
|
@ -1333,9 +1333,13 @@ void CConfigManager::loadConfigLoadVars() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CConfigManager::tick() {
|
void CConfigManager::tick() {
|
||||||
static const char* const ENVHOME = getenv("HOME");
|
std::string CONFIGPATH;
|
||||||
|
if (g_pCompositor->explicitConfigPath.empty()) {
|
||||||
const std::string CONFIGPATH = ENVHOME + (ISDEBUG ? (std::string) "/.config/hypr/hyprlandd.conf" : (std::string) "/.config/hypr/hyprland.conf");
|
static const char* const ENVHOME = getenv("HOME");
|
||||||
|
CONFIGPATH = ENVHOME + (ISDEBUG ? (std::string) "/.config/hypr/hyprlandd.conf" : (std::string) "/.config/hypr/hyprland.conf");
|
||||||
|
} else {
|
||||||
|
CONFIGPATH = g_pCompositor->explicitConfigPath;
|
||||||
|
}
|
||||||
|
|
||||||
if (!std::filesystem::exists(CONFIGPATH)) {
|
if (!std::filesystem::exists(CONFIGPATH)) {
|
||||||
Debug::log(ERR, "Config doesn't exist??");
|
Debug::log(ERR, "Config doesn't exist??");
|
||||||
|
|
Loading…
Reference in a new issue