flathub / org.keepassxc.KeePassXC

https://flathub.org/apps/details/org.keepassxc.KeePassXC
27 stars 16 forks source link

Cannot open non-default browser with flatpak. #124

Closed debmint closed 7 months ago

debmint commented 7 months ago

Running Mint 21.3 on one computer and Debian Bookworm on another. I removed and purged my deb installs of keepassxc and installed flatpak of version 2.7.7 in order to utilize secure keys. My default browser is Librewolf, but I have a few websites I need to use alternate browsers some with firefox and others with brave. When I attempt to call up these sites (using keepassxc-browser) , nothing happens. When I call it from the terminal on Mint, it did display an error about not being able to access a library function for firefox, but otherwise there is no output. There is one warning produced both from the command line and in .xsession-errors:

Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

The sites that use the default browser (with no "cmd//..." prefix work as expected. On Mint, I removed the flatpak and installed from the ppa as recommended on the keepassxc website and the sites using the alternate browsers work as expected.

I am not familiar with flatpaks but it would seem like it could be a permissions issue. I played with some of the permissions but with no improved results. I also tried calling keepassxc from the command line using the option --filesystem=host-os but with no luck. This may not be a flatpak issue, but since a native install of 2.7.7 corrects the issue, it seems to indicate to me that it certainly might be.

droidmonkey commented 7 months ago

Please post the full cmd:// line (minus the web address) so I can try to replicate. I suspect this isn't possible because you are basically trying to run another app from within the sandbox environment for keepassxc. When you don't use the cmd:// syntax, that is handled through a flatpak portal that calls the registered system app.

debmint commented 7 months ago

Please post the full cmd:// line (minus the web address) so I can try to replicate.

cmd:///usr/bin/firefox https://****

I suspect this isn't possible because you are basically trying to run another app from within the sandbox environment for keepassxc.

I think I see what you are saying.

When you don't use the cmd:// syntax, that is handled through a flatpak portal that calls the registered system app.

From what you are saying, calling a browser with or without the cmd:// notation must be calling the browser altogether differently. As I said in my previous post, I know practically nothing about flatpaks, am vaguely familiar with sandboxes. I failed to mention that I had also tried the appimage with the same result as flatpak. I had hoped to switch my Mint box to LMDE but from my research, there are no apt packages of 2.7.7 for Debian. I will probably just go back to the 2.6.? versions and forget about Secure Keys for now.

Thank you, I suppose it's time to close this issue.