Italy / Sweden
CS student @chalmers.se | Haskell | NixOS
Looks like I missed it. Patches welcome!
In flatpak it's actually possible to give restricted access to dbus (see
--talk-namehere). I wonder if/how that can be done with only bubblewrap. I don't see similar flags in its
Looks like it needs dbus access. Try passing through
$DBUS_SESSION_BUS_ADDRESSand adding a ro-bind for the path present in that variable.
By the way, the arch wiki is a great resource for fixing these type of errors: https://wiki.archlinux.org/title/Bubblewrap
By default nix-bubblewrap is very restrictive: it just gives access to the package closure, but most packages need more. The error you encountered is fixed by passing -gpu to nix-bwrap, but for element desktop to work properly you'll need to also pass -net, -x11 (I didn't test it on wayland yet, patches welcome), and -pulse or -alsa, and probably more if you also want the webcam to work (again, patches welcome).
You probably also want to add something like
-bwrap-options "--bind $HOME/.config/Element $HOME/.config/Element"
if you want your data to persist across sessions.
Duplicate of #1
Patches are welcome!
This is done, isn't it?
Thanks for the bug report, it should work now!
Francesco Gazzetta referenced this ticket in commit 8dafec2.
Oh oops, this is a bit of a duplicate of #13