-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use $0/../share/… as a default search path for --data-dir [feature request] #6143
Comments
This is a problem with the way homebrew is building pandoc. It should use the I don't want to implement your suggestion; it strikes me as potential a security risk. |
> embed_data_files: embed all data files into the binary (default no). This is helpful if you want to create a relocatable binary. See https://pandoc.org/installing.html#custom-cabal-method and jgm/pandoc#6143
That's very helpful! Thank you, John. |
> embed_data_files: embed all data files into the binary (default no). This is helpful if you want to create a relocatable binary. See https://pandoc.org/installing.html#custom-cabal-method and jgm/pandoc#6143 Closes #50292. Signed-off-by: Shaun Jackman <sjackman@gmail.com>
When Pandoc is moved after installation, it would be really helpful for Pandoc to search
$(realpath $0)/../share/…
for its data directory (where$0
isargv[0]
). My motivating use case is when installing a binary Pandoc package in my home directory using the Homebrew for Linux package manager. The workaround of creating a~/.pandoc
symlink is pretty straight forward, but it would be fantastic if it worked out of the box. Compiling Pandoc from source also works, but it's much faster to use a binary package.The text was updated successfully, but these errors were encountered: