Skip to content
Merged
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
3 changes: 2 additions & 1 deletion docs/electron.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from other applications. It also includes information on the tooling for
building Electron applications and how to use it.

The guide walks through the `manifest file

Check warning on line 13 in docs/electron.rst

View workflow job for this annotation

GitHub Actions / Linkcheck

<https://github.com/flathub/electron-sample-app/blob/master/org.flathub.electron-sample-app.yml>`_
of the `sample Electron Flatpak application
<https://github.com/flathub/electron-sample-app>`_. Before you start,
Expand Down Expand Up @@ -174,7 +174,8 @@
By default Electron uses ``{appname}.desktop`` as desktop file name. In Flatpak the name of the desktop file must be the id of the Flatpak.
To tell Electron to use another name you need to set the ``desktopName`` key in your ``package.json`` e.g. ``"desktopName": "com.example.MyApp.desktop"``.

In case you repack a binary, you can use the ``patch-desktop-filename`` script provided by the BaseApp. Each Electron binary ships with ``resources/app.asar`` file.
In case you repack a binary, you can use the `patch-electron-desktop-filename <https://codeberg.org/JakobDev/patch-electron-desktop-filename>`_ tool included in the BaseApp.
Each Electron binary ships with ``resources/app.asar`` file.
You need to call ``patch-desktop-filename`` with this file as argument.
If your application is installed under ``${FLATPAK_DEST}/my-app`` you need to run ``patch-desktop-filename ${FLATPAK_DEST}/my-app/resources/app.asar``.

Expand Down
Loading