Package: barrier
Version: 2.1.2+dfsg-1
Severity: normal

The manpage says barriers reads it config from:

| If no configuration file pathname is provided then the first of the
| following to load successfully sets the configuration:
|               $HOME/.local/share/barrier/barrier.conf /etc/barrier.conf

Apart from the fact that this probably should be ~/.config/barrier.conf,
the code does not match the documentation:

| weasel@orinoco:~$ strace -f barriers -a 127.0.0.1 2>&1 | grep -i open
[..]
| openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
| openat(AT_FDCWD, "/home/weasel/.local/share/barrier/.barrier.conf", O_RDONLY) 
= -1 ENOENT (No such file or directory)
| openat(AT_FDCWD, "/etc/barrier.conf", O_RDONLY) = -1 ENOENT (No such file or 
directory)

So it actually seems to try  $HOME/.local/share/barrier/.barrier.conf
(extra dot before barrier.conf).

Cheers,
-- 
                            |  .''`.       ** Debian **
      Peter Palfrader       | : :' :      The  universal
 https://www.palfrader.org/ | `. `'      Operating System
                            |   `-    https://www.debian.org/

Reply via email to