1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-09-13 10:31:36 +02:00
Files
wiki/wiki/electron.md
tiyn c03daea525 Corrected various typographic errors
- substituted en-dash for hyphen where needed
- renamed files to avoid confusion due to identical name
- added links
- fixed capitalization
- fixed line breaks
2026-07-02 09:12:29 +02:00

1.9 KiB
Raw Blame History

Electron

Electron is an open-source framework that allows developers to build cross-platform desktop applications using web technologies like JavaScript, HTML, and CSS. It combines the Chromium browser and Node.js.

Troubleshooting

This section will focus on errors and the fixing of errors of /name/.

Linux: Could not detect a default secure credential storage on your device.

A possible issue for Electron apps on Linux is the following error.

not detect a default secure credential storage on your device.

This occurs because Electron relies on a Secret Service such as the GNOME Keyring, among others) to store passwords securely on the system. And often appears on more minimal window managers on Xorg or Wayland. If no compatible service is running or detected, apps cannot save credentials.

Using the following steps this issue can be solved. Firstly if not already done install a secret service. For the Gnome Keyring install the packages libsecret and gnome-keyring. The name may differ slightly depending on the package manager used. Afterward make sure to run the service and enable it if not already done. An example for this is shown in the following command

eval $(/usr/bin/gnome-keyring-daemon --start)

Finally, the Electron app <electron-app> can be started. For the secure credential storage to be reachable the environment variable XDG_CURRENT_DESKTOP has to be set. Due to this environment variable being possibly relevant for the system-wide settings it is recommended to only set it for the Electron app by running the following command in a sub-shell.

export XDG_CURRENT_DESKTOP=GNOME
<electron-app>