Projet

Général

Profil

0001-workflows-isolate-libreoffice-UserInstallation-direc.patch

Thomas Noël, 07 juillet 2020 15:49

Télécharger (1,08 ko)

Voir les différences:

Subject: [PATCH] workflows: isolate libreoffice UserInstallation directory
 (#44787)

 wcs/wf/export_to_model.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
wcs/wf/export_to_model.py
80 80
                infile.flush()
81 81
                for i in range(3):
82 82
                    lo_output = subprocess.run(
83
                            ['libreoffice', '--headless', '--convert-to', 'pdf',
83
                            ['libreoffice', '-env:UserInstallation=file://%s' % temp_dir,
84
                                '--headless', '--convert-to', 'pdf',
84 85
                                infile.name, '--outdir', temp_dir],
85 86
                            check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
86 87
                    if os.path.exists(infile.name + '.pdf'):
87
-