zbar
zbar copied to clipboard
Name error when using zbarimg
I always get this error when using zbarimg:
$ zbarimg -q --raw firefox.combyK5uV.png
Name Error (Connection ":1.699" is not allowed to own the service "org.linuxtv.Zbar" due to security policies in the configuration file)
otpauth://totp/Firefox:damien%40cassou.me?secret=MRDXMULLKA4HAKZSJBLGKULLHBMGMVLV&issuer=Firefox
- zbarimg --version : 0.23.1
- OS : NixOS
I am encountering the same issue when using zbarimg (0.23.1 and also with 0.23.90 from the Application:Geo repository) with openSUSE Leap 15.3.
It must be related to this patch: https://github.com/mchehab/zbar/commit/a8be6a7bbb7d12ed0f6535b0e201a594416c77d3
A dumb explanation is that it tries to register a dbus service, and fails because of some misconfiguration in the code.
I can confirm that if you pass --without-dbus
to the configure
script, the error goes away.
Tested with:
$ import png:- | nix-shell -p 'zbar.override { enableDbus = false; }' --run 'zbarimg --quiet -Sdisable -Sqrcode.enable --raw -'
Hi, I also saw that in Guix when installing zbar
as a user.
Thanks for this great piece of software!