View Source Desktop.OS (Desktop v1.5.3)

The OS module provides shortcuts and helper functions to access OS specific information.

Most significant one should use OS.type() to differentiate between the currently supported environments:

  • Android
  • IOS
  • MacOS
  • Windows
  • Linux

Summary

Functions

Returns the users home directory

Replacement for the :wx_misc.launchDefaultBrowser function

This is a Path.expand variant that normalizes the drive letter on windows

Functions

@spec home() :: binary()

Returns the users home directory

Link to this function

launch_default_browser(file)

View Source

Replacement for the :wx_misc.launchDefaultBrowser function

@spec path_expand(IO.chardata()) :: binary()

This is a Path.expand variant that normalizes the drive letter on windows

@spec type() :: Linux | MacOS | Windows | Android | IOS