From 3721abcc5df259568fcfb1f300afc6ea4dea6fe1 Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 4 Jul 2026 17:03:30 +0200 Subject: [PATCH] Fix missing leading slash in player's initial working directory Every possible path/file in GameResponseService uses a leading slash (e.g. /var/home/{username}), but a player's initial pwd was seeded as 'var/home/{username}' without one. getAllCurrentFilesInDirectory() matches entries by comparing getPrevPath() (which always has the leading slash) against pwd, so a fresh player's ls always came back empty until their first cd command happened to normalize the format. Co-Authored-By: Claude Sonnet 5 --- src/Game/Service/GameDashboardService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game/Service/GameDashboardService.php b/src/Game/Service/GameDashboardService.php index 6907e6a..3a9c4be 100644 --- a/src/Game/Service/GameDashboardService.php +++ b/src/Game/Service/GameDashboardService.php @@ -202,7 +202,7 @@ final class GameDashboardService $setting->setSession($player->getSession()); $setting->setPlayer($player); $setting->setName($pwdSettingName); - $setting->setValue('var/home/' . $player->getUser()->getUsername()); + $setting->setValue('/var/home/' . $player->getUser()->getUsername()); $this->entityManager->persist($setting); }