giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.34k stars 457 forks source link

LATEX error with portable version of Cherry tree still present in version 0.99.56 #2297

Open Eagle20236 opened 1 year ago

Eagle20236 commented 1 year ago

Cherry tree version: 0.99.56 OS: Windows 64 Home

When running the portable version of Cherry tree, selecting 'Insert Latex' from the 'Insert' menu still generates the error 'Could not access the executable 'dvipng'.

However, the file dvipng.exe is present in the ...\CherryTree\cherrytree_0.99.56.0_win64_portable\mingw64\bin\ directory.

giuspen commented 1 year ago

I suspect the antivirus is blocking the execution of dvipng.exe and latex.exe - could this be the case?

Eagle20236 commented 1 year ago

Thank you for your reply.

I use Norton 360 for my antivirus program. I don't believe this is causing the problem for the following reasons:

  1. I used Norton 360 to scan the portable file directly and it has not produced any warnings.
  2. When I add the directory containing the bin directory to the path the portable Latex feature works.
giuspen commented 1 year ago

How exactly do you launch the portable? I have tested double clicking cherrytree.exe (was already working in 0.99.55) and creating a shortcut then moving the shortcut elsewhere (was not working in 0.99.55 but works in 0.99.56)

Eagle20236 commented 1 year ago

I have found out that sometimes Latex works and at other times it doesn't:

I set up the computer so that clicking on a *.ctb file will automatically open the portable version of CherryTree for that file. In this case Latex will not work.

However, if I run the portable versions of CherryTree directly by double clicking on its exe file then Latex works.

I don't understand why, since when I run portable versions of other programs they don't give a similar problem eg I run Libre Office by clicking on a spreadsheet file and the spreadsheet opens and (as far as I can tell) all the different functions that I use work.

Narachara commented 11 months ago

Have you found the error? For me (win11 x64) it neither works with the portable or the normal installation. I have dvipng installed and I can run it in powershell and I made sure it is in path.