Bug#977339: pandoc: `data-dir` or `XDG_DATA_HOME` don't appear to work for --defaults
Oops! Thanks! As you pointed out, I misread the manual page. Once the file was moved to $HOME/.local/share/pandoc/defaults/options.yaml it was found and it worked! Marking this bug as done. Regards, Kapil. -- On Mon, 14 Dec 2020 at 22:37, John MacFarlane wrote: > The man page says: > > > The file will be searched for first in the working directory, and then in > > the `defaults` subdirectory of the user data directory > > It looks as if you've put your options.yaml directly in the user > data directory rather than in the defaults subdirectory of that > directory: try `$HOME/.local/share/pandoc/defaults/options.yaml`. >
Bug#977339: pandoc: `data-dir` or `XDG_DATA_HOME` don't appear to work for --defaults
The man page says: > The file will be searched for first in the working directory, and then in > the `defaults` subdirectory of the user data directory It looks as if you've put your options.yaml directly in the user data directory rather than in the defaults subdirectory of that directory: try `$HOME/.local/share/pandoc/defaults/options.yaml`.
Bug#977339: pandoc: `data-dir` or `XDG_DATA_HOME` don't appear to work for --defaults
Package: pandoc Version: 2.9.2.1-1+b1 Severity: normal Dear Maintainer, The --defaults option does not appear to look in $HOME/.local/share/pandoc/ it also does not appear to look into $XDG_DATA_HOME/pandoc/ to look for the file mentioned in this option. $ export XDG_DATA_HOME=$HOME/.local/share $ pandoc -d options report.md pandoc: options.yaml: openBinaryFile: does not exist (No such file or directory) (This is in spite of the fact that $HOME/.local/share/pandoc/options.yaml exists.) The man page mentions these two locations. Regards, Kapil. -- -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.14.199-16598-gb08cd9ce6991 (SMP w/2 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN Locale: LANG=en_IN.utf8, LC_CTYPE=en_IN.utf8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages pandoc depends on: ii libc6 2.31-5 ii libcmark-gfm-extensions0 0.29.0.gfm.0-6 ii libcmark-gfm0 0.29.0.gfm.0-6 ii libffi7 3.3-5 ii libgmp10 2:6.2.1+dfsg-1 ii libpcre3 2:8.39-13 ii pandoc-data 2.9.2.1-1 ii zlib1g1:1.2.11.dfsg-2 pandoc recommends no packages. Versions of packages pandoc suggests: pn citation-style-language-styles pn context pn ghc ii groff 1.22.4-5 pn libjs-mathjax pn librsvg2-bin pn node-katex pn nodejs ii pandoc-citeproc 0.17.0.1-1+b1 ii perl5.32.0-5 pn php pn python pn r-base-core ii ruby1:2.7+2 ii texlive-latex-extra 2020.20201129-1 ii texlive-latex-recommended 2020.20200925-1 ii texlive-luatex 2020.20200925-1 pn texlive-xetex pn wkhtmltopdf -- no debconf information