# Checking if the current page is a desktop app, and checking current platform

You may want to conditionally show certain UI or run certain actions based on the platform or build type.\
\
To determine the device OS, we can use states on the [System Element](/deskifier/deskifier-bubble.io-docs/system-element.md).

<figure><img src="/files/WqNGAYksJkdlzt0FSkSl" alt=""><figcaption></figcaption></figure>

To determine if the app is currently running as a desktop app, we can check this field on the [App Element](/deskifier/deskifier-bubble.io-docs/app-element.md).

<figure><img src="/files/44NqunjAjzi7m99SqQIk" alt=""><figcaption></figcaption></figure>

And additionally, we can check which distributable type the app is currently running in with this field

<figure><img src="/files/jg6C1qQDOcVJobfKqmvK" alt=""><figcaption></figcaption></figure>

The possible values are  `MAS` (Mac App Store), `DMG` (Mac Installer), `APPX` (Windows App Store), `NSIS` (Windows Installer), `APPIMAGE` (Linux)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/guides-and-examples/checking-if-the-current-page-is-a-desktop-app-and-checking-current-platform.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
