zbar icon indicating copy to clipboard operation
zbar copied to clipboard

Name error when using zbarimg

Open DamienCassou opened this issue 4 years ago • 5 comments

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

DamienCassou avatar Aug 11 '20 06:08 DamienCassou

  • zbarimg --version : 0.23.1
  • OS : NixOS

DamienCassou avatar Aug 11 '20 06:08 DamienCassou

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.

acc987 avatar Jul 02 '21 14:07 acc987

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.

Profpatsch avatar Oct 26 '21 10:10 Profpatsch

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 -'

Profpatsch avatar Oct 26 '21 10:10 Profpatsch

Hi, I also saw that in Guix when installing zbar as a user.

Thanks for this great piece of software!

lechner avatar May 26 '22 14:05 lechner