diff --git a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileSystemPermissionsService.cs b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileSystemPermissionsService.cs
index 9b55641d..73ba1d4b 100644
--- a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileSystemPermissionsService.cs
+++ b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Services/FileSystemPermissionsService.cs
@@ -40,7 +40,7 @@ internal class FileSystemPermissionsService : IFileSystemPermissionsService // T
{
PlatformType platformType = _platformContextManager.GetCurrentContext().Platform;
if (platformType == PlatformType.Unix)
- return CanAccessPathLinux(path.Path, accessMode);
+ return CanAccessPathUnix(path.Path, accessMode);
else if (platformType == PlatformType.Windows)
#pragma warning disable CA1416 // Validate platform compatibility
return CanAccessPathWindows(path.Path, accessMode, isFile);
@@ -50,13 +50,13 @@ internal class FileSystemPermissionsService : IFileSystemPermissionsService // T
}
///
- /// Checks if a the current user has access permissions on Linux for , with .
+ /// Checks if a the current user has access permissions on Unix for , with .
///
/// The path for which to check the access.
/// The access mode in which to check that path access.
/// if the current user has rights for the specified path and acccess mode, otherwise.
/// Thrown when trying to check access for a mode that is not supported
- private static bool CanAccessPathLinux(string path, FileAccessMode accessMode)
+ private static bool CanAccessPathUnix(string path, FileAccessMode accessMode)
{
AccessModes modes;
UnixFileSystemInfo fileInfo = new UnixFileInfo(path);
diff --git a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManager.cs b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManager.cs
index 056780ff..d1e4a766 100644
--- a/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManager.cs
+++ b/src/Lumina.Domain/Core/BoundedContexts/FileSystemManagementBoundedContext/FileSystemManagementAggregate/Strategies/Platform/PlatformContextManager.cs
@@ -34,7 +34,7 @@ public class PlatformContextManager : IPlatformContextManager
{
// set a default context if none is set
if (_currentPlatformContext is null)
- if (_operatingSystemInfo.IsOSPlatform(OSPlatform.Linux))
+ if (_operatingSystemInfo.IsOSPlatform(OSPlatform.Linux) || _operatingSystemInfo.IsOSPlatform(OSPlatform.OSX))
SetCurrentPlatform(PlatformType.Unix);
else
SetCurrentPlatform(PlatformType.Windows);
diff --git a/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj b/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj
index 8e9f641f..ae9f905f 100644
--- a/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj
+++ b/src/Lumina.Presentation.Web/Lumina.Presentation.Web.csproj
@@ -6,7 +6,7 @@
$(SolutionDir)..\bin\web\
false
true
- 6413036f-92d7-45d8-a8B1-205200089047
+ 10a94da9-18ed-4c70-a9da-b461e08958c4
Linux
lumina-web
lumina-web
@@ -35,7 +35,5 @@
$(NoWarn);TS6385
- 10a94da9-18ed-4c70-a9da-b461e08958c4
- Linux
diff --git a/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs b/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs
index c7b98f62..f74eec74 100644
--- a/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs
+++ b/src/Lumina.Presentation.Web/ViewComponents/FileSystemBrowserViewComponent.cs
@@ -35,7 +35,7 @@ public class FileSystemBrowserViewComponent : ViewComponent
{
return View(new
{
- Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? @"/" : @"C:\Users\",
+ Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ? @"/" : @"C:\Users\",
ServerBasePath = $"{_serverConfigurationModel.BaseAddress}:{_serverConfigurationModel.Port}/api/v{_serverConfigurationModel.ApiVersion}/",
ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment
ViewMode = FileSystemViewMode.List,