Class LinuxPlatform
- Namespace
- FishMMO.Installer
- Assembly
- FishMMO-Installer.dll
Linux platform implementation.
public class LinuxPlatform : IPlatform
- Inheritance
-
LinuxPlatform
- Implements
- Inherited Members
Properties
IsLinux
True when running on Linux.
public bool IsLinux { get; }
Property Value
IsWindows
True when running on Windows.
public bool IsWindows { get; }
Property Value
Methods
GetShellCommand()
Returns the OS-appropriate shell executable and argument prefix. Windows: (cmd.exe, /c). Linux: fish if available, else bash.
public (string shell, string argPrefix) GetShellCommand()
Returns
IsCommandAvailableAsync(string)
Checks whether a given executable is available on PATH.
public Task<bool> IsCommandAvailableAsync(string command)
Parameters
commandstring