tokens: fix initial workspace token ignoring special

ref #5726
This commit is contained in:
Vaxry 2024-04-24 02:05:56 +01:00
parent 31d055f6d4
commit 34413d1f36
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ static std::vector<std::pair<std::string, std::string>> getHyprlandLaunchEnv() {
std::vector<std::pair<std::string, std::string>> result;
result.push_back(std::make_pair<>("HL_INITIAL_WORKSPACE_TOKEN", g_pTokenManager->registerNewToken(PMONITOR->activeWorkspace->getConfigName(), std::chrono::minutes(2))));
result.push_back(std::make_pair<>(
"HL_INITIAL_WORKSPACE_TOKEN",
g_pTokenManager->registerNewToken(PMONITOR->activeSpecialWorkspace ? PMONITOR->activeSpecialWorkspace->getConfigName() : PMONITOR->activeWorkspace->getConfigName(),
std::chrono::minutes(2))));
return result;
}