Indeed. Any idea of why it would not be set?
I tried setting it to the same value as the clean VM had when starting Firefox with DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus firefox
and then doing DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus firefox google.com
, and that actually opened the URL in the existing browser window
It also seems to fix the webextensions issue:
$ MOZ_LOG=NativeMessagingPortal:5 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus firefox_beta
[GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
[2022-10-05T11:21:41Z ERROR glean_core::metrics::ping] Invalid reason code startup for ping background-update
[Parent 1134864: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::NativeMessagingPortal()
[Parent 1134864: Main Thread]: D/NativeMessagingPortal will be used
[Parent 1134864: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::DelayedCall()
[Parent 1134864: Main Thread]: D/NativeMessagingPortal D-Bus proxy ready for name org.freedesktop.portal.Desktop, path /org/freedesktop/portal/desktop, interface org.freedesktop.portal.WebExtensions
[Parent 1134864: Main Thread]: D/NativeMessagingPortal is available
And also setting the environment variable for flatpak gives me something that looks better:
$ DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus flatpak permissions webextensions
Table Object App Permissions Data
webextensions org.keepassxc.keepassxc_browser snap.firefox_beta no 0x00
So… How to get the environment variable properly set?