WriteTeX icon indicating copy to clipboard operation
WriteTeX copied to clipboard

[Suggestion] handle_path function puts newpath before old os.environ["PATH"] is better.

Open L-N1988 opened this issue 2 years ago • 0 comments

I use archlinux with texlive installed in /usr/local/ folder, which is not in typical os PATH (something like /usr/bin/....). After I add /usr/local/texlive/2022/bin/x86_64-linux to new path, the handle_path function will append new path to os PATH. However, archlinux have some broken tex binary in /usr/bin (I don't know why and when they were installed), so inkscape always use these broken tex binary instead of /usr/local/texlive/. In my opinion, users who config new path are likely to use this new path first instead of old os path. Therefore, I think handle_path function puts newpath before old os.environ["PATH"] is better.

I change line 373 to

            os.environ['PATH'] = newpath + os.path.pathsep + os.environ['PATH'] 

L-N1988 avatar Nov 16 '23 09:11 L-N1988