Function · Desktop Services
getDesktopPlatformInfo
Returns operating-system, runtime, and well-known directory information.
@sharpts/gui · SharpTS 572a2e31be0eSignature
TypeScript
getDesktopPlatformInfo(): DesktopPlatformInfoReturns
DesktopPlatformInfo — Current desktop platform information.
Remarks
Directory values follow operating-system conventions and can be empty when the platform does not define a corresponding well-known folder.
Examples
TypeScript
import { getDesktopPlatformInfo } from "@sharpts/gui";
const platform = getDesktopPlatformInfo();
console.log(platform.operatingSystem, platform.architecture);Related symbols
Source
src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1675 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.