the extension in firefox still does not work.
I don’t really understand enough about snap except that it keeps causing me difficulties time and time again. I do not know how to proceed. Do I need to wait for updates or should I try migrating my firefox back to a normal version?
The keepassxc-snap-helper.sh script also tells me “Sorry, browsers installed as snaps are not supported at this time”.
When I disable all extensions but keepassxc I still get:
[Parent 11301: Main Thread]: D/NativeMessagingPortal will be used
[Parent 11301: Main Thread]: D/NativeMessagingPortal is available
[Parent 11301: Main Thread]: D/NativeMessagingPortal creating session with handle suffix firefox_org_keepassxc_keepassxc_browser_2300902597
[Parent 11301: Main Thread]: D/NativeMessagingPortal session created with handle /org/freedesktop/portal/desktop/session/1_166/firefox_org_keepassxc_keepassxc_browser_2300902597
[Parent 11301: Main Thread]: D/NativeMessagingPortal starting org.keepassxc.keepassxc_browser, requested by keepassxc-browser@keepassxc.org in session /org/freedesktop/portal/desktop/session/1_166/firefox_org_keepassxc_keepassxc_browser_2300902597
[Parent 11301: Main Thread]: D/NativeMessagingPortal native application start requested in session /org/freedesktop/portal/desktop/session/1_166/firefox_org_keepassxc_keepassxc_browser_2300902597, pending response for /org/freedesktop/portal/desktop/request/1_166/firefox/1199416126
[Parent 11301: Main Thread]: D/NativeMessagingPortal got response signal for /org/freedesktop/portal/desktop/request/1_166/firefox/1199416126 in session /org/freedesktop/portal/desktop/session/1_166/firefox_org_keepassxc_keepassxc_browser_2300902597
[Parent 11301: Main Thread]: D/NativeMessagingPortal native application start failed in session /org/freedesktop/portal/desktop/session/1_166/firefox_org_keepassxc_keepassxc_browser_2300902597
[Parent 11301: Main Thread]: D/NativeMessagingPortal session /org/freedesktop/portal/desktop/session/1_166/firefox_org_keepassxc_keepassxc_browser_2300902597 was closed by the portal
[Parent 11301: Main Thread]: D/NativeMessagingPortal cannot close session /org/freedesktop/portal/desktop/session/1_166/firefox_org_keepassxc_keepassxc_browser_2300902597, unknown handle
even when using firefox snap beta.
I even tried manually creating the file snap/firefox/common/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json and watching the debug output for the extension, but nothing changes. It doesn’t work… and what really frustrates me about this is how opaque everything is when using snaps… I just can’t figure out where something is failing!
Then that’s what’s wrong: the portal will look for manifests in ~/.mozilla/native-messaging-hosts/ and in /usr/lib/mozilla/native-messaging-hosts/, not under ~/snap/firefox/….
ok. thanks. I will try that.
But it is confusing. The file in .mozilla/ is created by the keepassxc-snap-helper.sh script only when you lie and claim that firefox is not installed as a snap.
Edit: still not working. Is it maybe a problem that both firefox and keepassxc are snaps?
Edit 2: restarted everything one more time. now it works.
I just wanted to confirm that I experienced the same behavior in KDE. The KeePassXC browser extension connected when launched from the terminal or from the application menu with Launch Feedback set to No Feedback. When launched from the menu with Bouncing feedback, the KeePassXC browser extension will not connect.
I do not have Zoom installed; perhaps there are other applications that can cause the same issue?
With snap Firefox 106.0b6 and KDE I was able to get tridactyl and plasma-integration working after a reboot. I did more mucking about with flatpak permissions and symlinking ~/.mozilla than was necessary – the key was rebooting
finally connector is working i have the compiled connector on my system i used it to install the new version of the connector in opera no more v6 error
I cannot get Firefox as a snap and KeePass from the PPA to work. I guess this could be related, but I have no idea how to fix it.
$ flatpak permissions webextensions
error: The given address is empty
[Parent 16163: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::NativeMessagingPortal()
[Parent 16163: Main Thread]: D/NativeMessagingPortal will be used
[Parent 16163: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::DelayedCall()
[Parent 16163: Main Thread]: D/NativeMessagingPortal failed to get a D-Bus proxy: The given address is empty
[Parent 16163, Main Thread] WARNING: OnProxyReady error: The given address is empty: 'glib warning', file /build/firefox/parts/firefox/build/toolkit/xre/nsSigHandlers.cpp:167
** (firefox-beta:16163): WARNING **: 09:49:55.137: OnProxyReady error: The given address is empty
[Parent 16163: Main Thread]: D/NativeMessagingPortal is not available
[Parent 16163: Main Thread]: D/NativeMessagingPortal NativeMessagingPortal::DelayedCall::~DelayedCall()
[Parent 16163: Main Thread]: D/NativeMessagingPortal will be used
[Parent 16163: Main Thread]: D/NativeMessagingPortal is not available
Firefox beta from snap:
$ snap list firefox
Name Version Rev Tracking Publisher Notes
firefox 106.0b7-1 1912 latest/beta mozilla✓ -
$ dpkg -l | grep keepassxc
ii keepassxc 2.7.1-1ppa1~jammy1 amd64 KeePass Cross-Platform Community Edition
Yes, that’s confusing indeed. This is because it is indeed not supported by a stable snap yet. I’m making a note to suggest a change to that script once the support lands in stable.
Sounds like the portal might not be available? Can you check whether xdg-desktop-portal is installed, and whether there is a process of the same name running?
Not sure how relevant, but this is an old installation upgraded from Ubuntu 20.04 (and 18.04 before that, and probably 16.04 before that).
Also seeing this in the journal when starting Firefox:
okt 03 15:20:13 desk xdg-desktop-por[13826]: Could not find WebExtensions backend: cannot find native messaging server
And snap.snapd-desktop-integration.snapd-desktop-integration.service fails to start during boot:
okt 03 16:03:41 desk snapd-desktop-integration.snapd-desktop-integration[4620]: Sorry, home directories outside of /home are not currently supported.
okt 03 16:03:41 desk snapd-desktop-integration.snapd-desktop-integration[4620]: See https://forum.snapcraft.io/t/11209 for details.
okt 03 16:03:41 desk systemd[4525]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE
okt 03 16:03:41 desk systemd[4525]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Failed with result 'exit-code'.
No idea what the error message means, my home directory is not outside /home.
That at least means that the correct version of the XDG desktop portal is running. But it complains that it cannot find the manifest for a native app that was requested by an extension. It could be that it’s for another manifest that you haven’t installed though, not necessarily for the keepassxc one.
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?
usually your desktop session should be designed in a way that it spawns a dbus first thing before launching anything else… this should also export the variable with the correct path …
did you tinker in any way with your desktop session or your login manager (GDM most likely) ?
or is there anything else that is special about your desktop session that might differ from a standard desktop one ?
Nothing that I can recall at least. Any hints on what files I could compare with a clean Ubuntu 22.04 installation to find out? Nothing in /etc/bash.bashrc, /etc/profile, ~/.profile or ~/.bashrc stands out at least.