if username has spaces or is long, tempdir replaces username with tilde (`~`) (breaks pdflatex)
I am pretty new to Inkscape and do not have a programming background. I am trying to run Extensions>Render>Mathematics>LaTeX but it's giving me the following error. I have tried many hacks/suggestions available online but none seems to work for me. Would really appreciate help.
Traceback (most recent call last):
File "C:\Program Files\Inkscape\share\inkscape\extensions\pdflatex.py", line 83, in <module>
PdfLatex().run()
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 140, in run
self.save_raw(self.effect())
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\extensions.py", line 159, in effect
for child in fragment:
File "C:\Program Files\Inkscape\share\inkscape\extensions\pdflatex.py", line 49, in generate
call('pdflatex', tex_file,\
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\command.py", line 182, in call
return _call(program, *args, **kwargs)
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\command.py", line 171, in _call
raise ProgramRunError("Return Code: {}: {}\n{}\nargs: {}".format(
inkex.command.ProgramRunError: Return Code: 1: b'pdflatex: security risk: running with elevated privileges\r\n'
b"This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8)\r\nentering extended mode\r\n! I can't find file `C:/Users/WALEED'.\r\n<to be read again> \r\n \\protect \r\n<*> C:/Users/WALEED~\r\n 1.MIR/AppData/Local/Temp/inktmpbnscyf92/input.tex\r\nPlease type another input file name: \r\n! Emergency stop.\r\n<to be read again> \r\n \\protect \r\n<*> C:/Users/WALEED~\r\n 1.MIR/AppData/Local/Temp/inktmpbnscyf92/input.tex\r\n! ==> Fatal error occurred, no output PDF file produced!\r\nTranscript written on C:\\Users\\WALEED~1.MIR\\AppData\\Local\\Temp\\inktmpbnscyf92\\t\r\nexput.log.\r\n"
args: ['C:\\Users\\waleed.mirza\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\pdflatex.exe', '-output-directory=C:\\Users\\WALEED~1.MIR\\AppData\\Local\\Temp\\inktmpbnscyf92', '-halt-on-error', 'C:\\Users\\WALEED~1.MIR\\AppData\\Local\\Temp\\inktmpbnscyf92\\input.tex']
Edited by Nathan Lee