GUI桌面环境

This commit is contained in:
2026-03-01 17:03:49 +08:00
parent 545f40cf95
commit f0a9223520
162 changed files with 9170 additions and 135 deletions

View File

@@ -20,7 +20,7 @@ namespace CMLeonOS.Commands
return;
}
if (userSystem == null || userSystem.CurrentLoggedInUser == null || !userSystem.CurrentLoggedInUser.IsAdmin)
if (userSystem == null || UserSystem.CurrentLoggedInUser == null || !UserSystem.CurrentLoggedInUser.IsAdmin)
{
Console.WriteLine("Error: Only administrators can change settings.");
return;

View File

@@ -28,7 +28,7 @@ namespace CMLeonOS.Commands.User
public static void ProcessUserCommand(string args, CMLeonOS.UserSystem userSystem, Action<string> showError)
{
if (userSystem == null || userSystem.CurrentLoggedInUser == null || !userSystem.CurrentLoggedInUser.IsAdmin)
if (userSystem == null || UserSystem.CurrentLoggedInUser == null || !UserSystem.CurrentLoggedInUser.IsAdmin)
{
showError("Error: Only administrators can use this command.");
return;

View File

@@ -61,7 +61,7 @@ namespace CMLeonOS
Commands.SettingsCommand.SetUserSystem(userSystem);
Commands.User.UserCommand.SetUserSystem(userSystem);
User currentUser = userSystem.CurrentLoggedInUser;
User currentUser = UserSystem.CurrentLoggedInUser;
if (currentUser != null && !string.IsNullOrWhiteSpace(currentUser.Username))
{
string userHomePath = $@"0:\user\{currentUser.Username}";
@@ -86,7 +86,7 @@ namespace CMLeonOS
public void Run()
{
User currentUser = userSystem.CurrentLoggedInUser;
User currentUser = UserSystem.CurrentLoggedInUser;
bool shouldExit = false;
while (true)