---
title: "setXdgAppId"
---
> **setXdgAppId**(`app_id`): `void`

Defined in: [api/node/typescript/index.ts:1037](https://github.com/slint-ui/slint/blob/master/api/node/typescript/index.ts#L1037)

Sets the application id for use on Wayland or X11 with [xdg](https://specifications.freedesktop.org/desktop-entry-spec/latest/)
compliant window managers. This must be set before the window is shown.

## Parameters

### app\_id

`string`

## Returns

`void`