[Primers are a legitimately difficult thing to manufacture]
thats a problem that may not endure. if a firearm is reengineered to use an electrode to detonate charge rather than a chemical primer, there is no need for murcury fulminate, just a piezo electric spark generator, and a few square cm of cerebral cortex.
AFAIK, nobody uses fulminate of mercury in primers anymore.
Electronic primers are a thing that already exists commercially. In the early 2000s, Remington sold electronically primed hunting rifles next to their non-electronic equivalent (see: "EtronX").
It is a mature technology. The main issue is cost and simplicity, since it often requires adding electronics to weapons that normally would not require them. The military uses electronically primed cartridges for things like chain guns and autocannons, since those require electronics to fire regardless of how it is primed.