Documentation
On this page

Function · Desktop Services

getDesktopPlatformInfo

Returns operating-system, runtime, and well-known directory information.

@sharpts/gui · SharpTS 572a2e31be0e

Signature

TypeScript
getDesktopPlatformInfo(): DesktopPlatformInfo

Returns

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);

Source

src/SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1675 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.