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] version LIBDBUS_PRIVATE_1.12.20 not found #1510

Open
Zegorax opened this issue Dec 4, 2024 · 3 comments
Open

[SNAP] version LIBDBUS_PRIVATE_1.12.20 not found #1510

Zegorax opened this issue Dec 4, 2024 · 3 comments

Comments

@Zegorax
Copy link

Zegorax commented Dec 4, 2024

Describe the bug
When installed via Snap, Electron cannot target the correct libdbus version.

To Reproduce

  1. Install Teams-for-Linux via Snap
  2. Add the following to ~/snap/teams-for-linux/current/.config/teams-for-linux/config.json :
{
	"ssoInTuneEnabled": true,
	"ssoInTuneAuthUser": "your-corporate-email",
	"logLevels": "debug"
}
  1. Start the app via cli with /snap/bin/teams-for-linux

Expected behavior
The DBus lib should succesfully query the DBus intune broker

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Installation package snap
  • Version 1.11.5

Debug

dbus-send: /snap/teams-for-linux/715/lib/x86_64-linux-gnu/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.12.20' not found (required by dbus-send)

Additional Context
I believe it's the same bug as described here : electron-userland/electron-builder#8234
They fixed it in Bitwarden with this commmit : https://github.com/bitwarden/clients/pull/11932/files

Would it be possible to take a look ?

Thanks in advance!

@IsmaelMartinez
Copy link
Owner

Hi, thanks for reporting.

While we use afterpack scripts the bitwarden implementation is quite different. I will have a look once I get some time but hopefully this gets fixed in electron-builder, and we don't need to add hacks to add that LD_PRELOAD.

But you can always set that in your environment and see if that works?

export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libdbus-1.so.3"

@maxpunktezahl
Copy link

Hi Ismael,

at least for me the LD preload hack
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libdbus-1.so.3"
does not fix the behaviour of teams-for-linux.
Still get a
dbus-send: /snap/teams-for-linux/724/lib/x86_64-linux-gnu/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.12.20' not found (required by dbus-send)

I assume that's the reason for microphone issues I am observing recently.

My libdbus is /usr/lib/x86_64-linux-gnu/libdbus-1.so.3 -> libdbus-1.so.3.19.13
Lubuntu, Ubuntu 22.04.5 LTS
teams-for-linux 1.12.3

Found also the issue here: electron-userland/electron-builder#8234

Maybe snap now drops the LD_PRELOAD var because of security issues? (just an assumption)

Thanks a lot for your work for the unofficial teams-for-linux!

Andreas

@IsmaelMartinez
Copy link
Owner

The electron issue is probably the Microsoft bug they just fixed in the PWA. See #1523 but haven't landed to everyone.

Unfortunately if the export doesn't fix the issue, then the solution from bitwarden will not fix the issue.

Have you tried another packaged option? It could be a snap issue.

Also, ensure you have created an apparmour profile (see #1426) as that could be blocking you. (or will from electron 24 on-wards)

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

3 participants