QDir::mkdir don't work with creating of nested directory, so when cantor_rserver try to create $TPDIR/cantor/rserver-XXX, the directory don't be created and it breaks output for image, lists (lists prints as html table), etc.
- Start R backend
- run x <- seq(-pi, pi, len=50)
- run plot(x)
- Check, that plot appears.
I can confirm that BUG 394018 and also the issues with the plots is fixed with your change. However, I'm seeing yet another inconsistency in Cantor's code with respect to the names of the temporary folders and files. Check for example maximaexpression.cpp:72 and similar for juliaexpressions and maybe for other backends. Should we remove the subfolder structure in rserver and go for a simple
m_tmpDir = QDir::tempPath() + QString::fromLatin1("/cantor_rserver-%1").arg(getpid()); QDir dir; dir.mkdir(m_tmpDir);