mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 11:37:01 +00:00
GUI桌面环境
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user