Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap protocol handler not working due to LIBDBUS_PRIVATE_1.12.20 not found (required by dbus-send) #8234

Open
quexten opened this issue May 24, 2024 · 3 comments

Comments

@quexten
Copy link

quexten commented May 24, 2024

  • Electron-Builder Version: 24.13.3
  • Node Version: v18.13.0
  • Electron Version: 28.3.1
  • Electron Type (current, beta, nightly): current

Target: Ubuntu/Snap

Hi,

When trying to use protocol handlers under a snap build created with electron builder, the dbus call required for the launched instance to pass the schema parameters to the main electron instance does not work due to: dbus-send: /snap/bitwarden/x13/lib/x86_64-linux-gnu/libdbus-1.so.3: version LIBDBUS_PRIVATE_1.12.20 not found (required by dbus-send). All other distribution mechanisms (AppImage, Flatpak[using electron-builder .deb)) work fine for the same build. Confinement is strict, and the base is core22 (electron-builder.json).

Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Jul 24, 2024
@quexten
Copy link
Author

quexten commented Aug 15, 2024

This is still an issue.

@quexten
Copy link
Author

quexten commented Nov 9, 2024

I did some digging on this. In core22, the dbus-send executable - needed for the protocol handler - is linked (correctly) against LIBDBUS_PRIVATE_1.12.20. However, building the app with electron builder copies an libdbus shared object into resulting app's snap layer. Libdbus then tries to load the app's libdbus, which has a mismatched LIBDBUS_PRIVATE (1.12.2).

This can be fixed by wrapping launching the app with an LD_PRELOAD to load the base images libdbus.

I'm honestly unsure if this is a misconfiguration in Bitwarden's electron-builder configuration, or a bug in electron builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant