mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 20:51:58 -07:00
* respect explicit config path for autoreload config
This commit is contained in:
@@ -1333,9 +1333,13 @@ void CConfigManager::loadConfigLoadVars() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CConfigManager::tick() {
|
void CConfigManager::tick() {
|
||||||
|
std::string CONFIGPATH;
|
||||||
|
if (g_pCompositor->explicitConfigPath.empty()) {
|
||||||
static const char* const ENVHOME = getenv("HOME");
|
static const char* const ENVHOME = getenv("HOME");
|
||||||
|
CONFIGPATH = ENVHOME + (ISDEBUG ? (std::string) "/.config/hypr/hyprlandd.conf" : (std::string) "/.config/hypr/hyprland.conf");
|
||||||
const std::string 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??");
|
||||||
|
Reference in New Issue
Block a user