1
0
mirror of https://github.com/mfontanini/presenterm.git synced 2026-09-01 23:33:21 -06:00

Revert "Unset LC_TERMINAL before exporting to pdf"

This reverts commit 5922a1e4d4f40475d508233eb6ce82a0ea472e5a.
This commit is contained in:
Matias Fontanini 2023-12-20 18:42:48 -08:00
parent bd82d7c3c8
commit 09e332bd88
2 changed files with 8 additions and 10 deletions

View File

@ -11,17 +11,19 @@ trap 'rm -rf "${env_dir}"' EXIT
python -mvenv "${env_dir}/pyenv"
source "${env_dir}/pyenv/bin/activate"
echo "Installing presenterm-export==0.2.0"
echo "Installing presenterm-export==0.1.2"
pip install presenterm-export
echo "Running presenterm..."
rm -f "${root_dir}/examples/demo.pdf"
cargo run -q -- --export-pdf "${root_dir}/examples/demo.md"
if test -f "${root_dir}/examples/demo.pdf"; then
echo "PDF file has been created"
rm -f "${root_dir}/examples/demo.pdf"
if test -f "${root_dir}/examples/demo.pdf"
then
echo "PDF file has been created"
rm -f "${root_dir}/examples/demo.pdf"
else
echo "PDF file does not exist"
exit 1
echo "PDF file does not exist"
exit 1
fi

View File

@ -97,10 +97,6 @@ impl<'a> Exporter<'a> {
let presenterm_path = presenterm_path.display().to_string();
let presentation_path = metadata.presentation_path.display().to_string();
let metadata = serde_json::to_vec(&metadata).expect("serialization failed");
// Remove the LC_TERMINAL environment variable as otherwise viuer will try to talk in
// iterm2 protocol to tmux and that breaks.
env::remove_var("LC_TERMINAL");
ThirdPartyTools::presenterm_export(&[&presenterm_path, "--export", &presentation_path])
.stdin(metadata)
.run()?;