adsdad
All checks were successful
Deploy / deploy-staging (push) Successful in 24s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-25 00:36:14 +02:00
parent ac2d95fc56
commit 487f592ca3
12 changed files with 188 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ use Desktop\AppRegistry;
use Desktop\AppIconResolver;
use Desktop\AppVisibility;
use Desktop\DesktopState;
use Desktop\ShellAppRegistry;
use Desktop\SkinResolver;
use Desktop\WidgetRegistry;
use Desktop\WindowManager;
@@ -30,6 +31,7 @@ final class App
$moduleRegistry = new ModuleRegistry(AppPaths::customAppsRoot($this->projectRoot));
$registry = new AppRegistry($this->projectRoot . '/config/apps.php', $moduleRegistry->desktopApps());
$widgetRegistry = new WidgetRegistry($this->projectRoot . '/config/widgets.php', $moduleRegistry->widgets());
$shellRegistry = new ShellAppRegistry(AppPaths::systemShellRoot($this->projectRoot));
$skins = SkinResolver::all();
$isAuthenticated = isset($_SESSION['desktop_auth']) && is_array($_SESSION['desktop_auth']);
$authUser = $isAuthenticated && is_array($_SESSION['desktop_auth']['user'] ?? null)
@@ -113,6 +115,10 @@ final class App
'active_ids' => $activeWidgetIds,
],
'tray' => $trayItems,
'shell' => [
'apps' => $shellRegistry->all(),
'debug_app' => $shellRegistry->find('desktop-debug'),
],
'session' => [
'display_name' => $displayName,
'authenticated' => $isAuthenticated,

View File

@@ -25,4 +25,14 @@ final class AppPaths
{
return self::systemAppsRoot($projectRoot) . '/' . trim($appName, '/');
}
public static function systemShellRoot(string $projectRoot): string
{
return rtrim($projectRoot, '/') . '/system/shell';
}
public static function systemShellPath(string $projectRoot, string $shellName): string
{
return self::systemShellRoot($projectRoot) . '/' . trim($shellName, '/');
}
}