I added a login screen, tweaked a few minor things, and spent some time debugging. I’m getting really close to finishing the project now, so what’s left will mostly be fixing small issues and adding a few minor features.
For the login screen, I built a prompt that checks local storage when the system boots. If it’s your first time, it shows the ‘Create User’ setup, and if you already have an account, it asks for your password to log in. I also added a ‘Shut Down’ button as an emergency fallback. Since everything is stored locally, forgetting your password would lock you out, so this button does a hard reset, clears the cache, and reboots the system from scratch.
On top of that, I modified the window manager because previously, all applications were opening at the exact same fixed coordinates. I implemented a classic cascading window algorithm, so now every new window spawns offset by 26 pixels down and to the right of the previous one. I also added dynamic boundary detection, so if the cascade is about to overflow the monitor’s edges, the coordinates reset and the next window spawns back at the initial position in the top-left corner.
Log in to leave a comment