I recently installed Lyx in a fresh install of Xubuntu 18.04 and am experiencing some problems with included graphics. It seems that the path to the file is not being properly passed to Inkscape when creating the PDF file. Let me illustrate with an example.
I have a Lyx file located at "/home/me/Dropbox/FCEN/Astrofisica/Mis cosas/Formulas/". This file includes an SVG graphic that is called "1.svg" and is located in the same place. So in Lyx I have
This works perfectly in my personal computer (also with Xubuntu 18.04 and the same version of Lyx), when I hit export PDF it proceeds straightforward. However, in this new fresh Xubuntu installation I get the following message when I hit export PDF:
As can be seen Lyx believes that the path to the file is
7_home_me_Dropbox_FCEN_Astrofisica_Mis_cosas_Formulas_1.svg whereas it should be
After this message is shown for each graphic that has been included, the PDF is exported but in place of the graphics there is a blank square with this inscription "7_home_me_Dropbox_FCEN_Astrofisica_Mis_cosas_Formulas_1.svg"
The guilty seems not to be Lyx but Inkscape or Ubuntu. I have checked that if I export the SVG image to PDF and then include it into Lyx, everything works ok. Also, if I try to open the SVG file with "right click → open with Inkscape" something strange happens too:
There is an issue with blank spaces in this case. I don't know if this problem has to do with Inkscape (I have the last version), with Ubuntu, or both.