Skip to content

[Bug]:Linux/Hyprland: SSH environment setup fails because Electron safeStorage reports encryption unavailable #2880

Description

@Dillpickleschmidt

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. On Arch/Omarchy Hyprland with Electron 41.5.0, ensure Secret Service is available:

    • gnome-keyring-daemon is running
    • secret-tool works after keyring unlock
  2. Start desktop dev mode:

    bun run dev:desktop
  3. Add a desktop-managed SSH environment.

Related upstream Electron issue: electron/electron#39789, fixed by electron/electron#49054. Updating Electron to a version containing that fix is likely preferred.

Expected behavior

SSH launch/tunnel succeeds and the saved environment credentials are persisted.

Actual behavior

SSH launch/tunnel succeeds, but credential persistence fails:

Unable to persist saved environment credentials.

safeStorage.isEncryptionAvailable() returns false even though Secret Service/libsecret is available.

Impact

Blocks work completely

Version or commit

No response

Environment

Arch/Omarchy Hyprland

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Until Electron is updated to 42.x, I verified this temporary workaround works in apps/desktop/src/main.ts:

if (process.platform === "linux") {
  Electron.app.commandLine.appendSwitch("password-store", "gnome-libsecret");
}

Note: this may break or bypass native behavior on other Linux environments like KDE.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions