Comments (9)
Good find. I hadn't yet tested it myself as I don't often use chromium lately. I have traced the issue to a permissions issue. It seems the extension ID is different for this case where the extension is unpacked.
You can workaround the issue temporarily by adding the extension ID to the ~/.config/chromium/NativeMessagingHosts/.org.keepassxc.keepassxc_browser.json
file's allowed_origins array but the real fix will be to the keepassxc source code. I will see what I can work out with them.
from ungoogled-chromium-debian.
In the meantime I will apply the patch I have come up with to my own build of keepassxc. You can use it if you wish but that is up to you.
from ungoogled-chromium-debian.
Can't you just set the extension ID appropriately in the appropriate file in your keepassxc-browser package?
from ungoogled-chromium-debian.
No. You can't set the extension ID directly from the extension itself. It's generated by Chromium using an algorithm that involves hashing the directory name that the extension is in. So the only real solution is to update keepassxc with the new ID.
It deviates from the original extension ID because it is provided as an unpacked extension instead of as a crx bundle. Their IDs are generated differently and I do not think I could get the unpacked extension to produce the same ID. And I know of no way to get Chromium to load an extension from an external file instead of an external directory.
from ungoogled-chromium-debian.
So upstream has rejected the patch because the "unpacked extension ID is unique". It seems consistent across different chromium versions in my packaging so what I am going to do is just provide a patched version of keepassxc in the ungoogled-chromium PPA so people can have both in sync and have them work together properly. It should be available to you shortly. That should resolve the issue for you.
from ungoogled-chromium-debian.
No. You can't set the extension ID directly from the extension itself.
This is not what I meant. I'm not familiar with how packaging works in Ubuntu, but couldn't you make your install script edit ~/.config/chromium/NativeMessagingHosts/.org.keepassxc.keepassxc_browser.json
when installing package keepassxc-browser?
from ungoogled-chromium-debian.
Yes though that has practical problems because home directories are at variable locations. Even if there weren't packaging challenges there's still the problems I observed in testing keepassxc integration. keepassxc deletes or overwrites the browser integration files like org.keepassxc.keepassxc_browser.json
whenever the browser integration settings are saved or otherwise modified regardless of the nature of the changes.
So even if I fixed it in the packaging for the extension keepassxc would just undo them taking us back to the original problem. The only viable solution seems to be to patch keepassxc so the extension ID is included in the generated configuration since manual configuration seems to be out of the question as keepassxc will modify or remove it effectively undoing the manual configuration.
from ungoogled-chromium-debian.
Ok, it's done. You can install the patched keepassxc from the PPA now. My tests reveal that it should now connect properly.
from ungoogled-chromium-debian.
@Eloston please close this issue. I believe it has been resolved.
from ungoogled-chromium-debian.
Related Issues (20)
- GPG Keys are broken: "The following signatures were invalid: EXPKEYSIG" HOT 1
- Build fail at the last command HOT 1
- Will try to Maintain This Port HOT 85
- Needed to re-adding the armhf binary into repository or write build instruction of armhf HOT 4
- ARM Support on OBS
- FileChooser always opens on home dir HOT 8
- dpkg-buildpackage error HOT 1
- Please made armhf deb package for Debian Bullseye which is still current status of Debian Stable HOT 2
- Won't build on Linuxmint 21 HOT 3
- 113.0.5672.63-1 fails to build on Ubuntu 23.04 (lunar) HOT 4
- request to release generated deb for ubuntu HOT 2
- Are there publishing issues with OBS for Debian and Ubuntu versions? HOT 11
- WebP vulnerability HOT 1
- Could not find gn executable at: /ungoogled-chromium-debian/buildtools/linux64/gn OS: Ubuntu 22.04 HOT 24
- Can't use Debian repository with Devuan Excalibur / Debian Trixie HOT 10
- [Guide] Missing dependencies on Debian bullseye HOT 2
- Troubleshooting ungoogled-chromium Build on Ubuntu 22.04 HOT 2
- Troubleshooting building the binary package on Ubuntu 23.10 HOT 12
- Proposal for new u-c-debian automation HOT 16
- Compilation issue with Ubuntu 24.04 HOT 35
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ungoogled-chromium-debian.