feat: multi-user system, bug fixes, security & performance fixes, and more

This commit is contained in:
2026-03-14 13:28:46 +01:00
parent 576ad34f95
commit 261b536041
389 changed files with 231853 additions and 591 deletions
+25
View File
@@ -60,6 +60,12 @@ struct DesktopState {
int window_count;
int focused_window;
// Current user context
char current_user[32];
char home_dir[128]; // "0:/users/<username>"
char user_config_dir[128]; // "0:/users/<username>/config"
bool is_admin;
Montauk::MouseState mouse;
uint8_t prev_buttons;
@@ -93,9 +99,11 @@ struct DesktopState {
SvgIcon icon_settings;
SvgIcon icon_reboot;
SvgIcon icon_shutdown;
SvgIcon icon_logout;
SvgIcon icon_procmgr;
SvgIcon icon_mandelbrot;
SvgIcon icon_volume;
// External apps discovered from 0:/apps/ manifests
ExternalApp external_apps[MAX_EXTERNAL_APPS];
@@ -109,6 +117,14 @@ struct DesktopState {
uint64_t net_cfg_last_poll;
Rect net_icon_rect;
bool vol_popup_open;
Rect vol_icon_rect;
int vol_level; // 0-100
bool vol_muted;
int vol_pre_mute; // volume before mute
bool vol_dragging; // slider drag in progress
uint64_t vol_last_poll;
int screen_w, screen_h;
// IDs of external windows we've sent a close event to but that haven't
@@ -119,6 +135,15 @@ struct DesktopState {
int closing_ext_count;
DesktopSettings settings;
// Lock screen state
bool screen_locked;
char lock_password[64];
int lock_password_len;
char lock_error[128];
bool lock_show_error;
char lock_display_name[64];
SvgIcon icon_lock;
};
// Forward declarations - implemented in main.cpp