Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/latest/.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
86ce4b4b9d015432e5a52e39fab740dc88e545fc
76b7ac4e15c6492189a002215e3eeecf7157af48
13 changes: 13 additions & 0 deletions docs/latest/api/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,19 @@ Overrides the current application's name.
> [!NOTE]
> This function overrides the name used internally by Electron; it does not affect the name that the OS uses.

### `app.setDesktopName(name)` _Linux_

* `name` string - The `.desktop` filename (e.g. `'my-app.desktop'`).

Sets the [`.desktop` filename](https://specifications.freedesktop.org/desktop-entry/latest/file-naming.html) on Linux.
This should match the base filename of the app's installed `.desktop` file. The `.desktop` suffix is optional.

This value is used to determine the default XDG application ID on Wayland and `WM_CLASS` on X11. If it is not set,
Electron will attempt to infer a name, but it may not match the packaged app's actual `.desktop` file. This could result
in the app showing a generic icon or failing to respond to global keyboard shortcuts.

This API must be called before the `ready` event. The value can also be set using `desktopName` in `package.json`.

### `app.getLocale()`

Returns `string` - The current application locale, fetched using Chromium's `l10n_util` library.
Expand Down
7 changes: 6 additions & 1 deletion docs/latest/api/safe-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ On Windows, returns true once the app has emitted the `ready` event.

### `safeStorage.isAsyncEncryptionAvailable()`

Returns `Promise<Boolean>` - Whether encryption is available for asynchronous safeStorage operations.
Returns `Promise<boolean>` - Resolves with whether encryption is available for
asynchronous safeStorage operations.

The asynchronous encryptor is initialized lazily the first time this method,
`encryptStringAsync`, or `decryptStringAsync` is called after the app is ready.
The returned promise resolves once initialization completes.

### `safeStorage.encryptString(plainText)`

Expand Down
9 changes: 5 additions & 4 deletions docs/latest/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ the [Advanced Installation](./tutorial/installation.md) documentation for more d

## How are Electron binaries downloaded?

When you run `npm install electron`, the Electron binary for the corresponding version is downloaded
into your project's `node_modules` folder via npm's `postinstall` lifecycle script.
When you run `npm install electron`, the main `bin` script is downloaded.
Once this is run (for example, via `npx electron`), the Electron binary for the corresponding version is downloaded into your project's node_modules folder dynamically via the `install-electron` script.

This logic is handled by the [`@electron/get`](https://github.com/electron/get) utility package
under the hood.
The download logic is handled by the [`@electron/get`](https://github.com/electron/get) utility package under the hood.

You can also call the `install-electron` script manually.

## When will Electron upgrade to latest Chromium?

Expand Down