I am running Xubuntu 18.04 in a desktop computer, installed last week. I am having problems to open files if the path has a blank space and I believe this is producing other problems too (for example this). Just to give an example, I have placed an Inkscape document in a directory ~Escritorio/New Folder
. The file is called dibujo.svg
. If I double click it I get two errors:
Google Translate has "Error when loading the requested file" as the translation of "error al carger el archivo pedido" from Spanish.
However if I open a terminal in that place and write inkscape dibujo.svg
everything works fine.
If I make "right click --> open with" and select a program other than Inkscape (say a text editor or an image viewer) there is no strange behavior.
I have tried with two file managers, Thunar and PCManFM, and am experiencing similar problems with both.
This is a common problem.
Generally, if I create a folder, and I want a space, I replace the desired space location with an underscore, like "New_Folder". This is especially true with source code folders.
If your problem only occurs with this one instance, just rename the folder. If it happens elsewhere too, then keep digging for a solution. Maybe it's a problem with the File Manager in Xubuntu.
Generally, in scripts, if you've already got "New Folder" in your path, you must either quote or escape the space, like:
Almost accidentally I found the solution. I let it here for future reference.