0

For some reason I can't open this pdf file with gnome-open command.

cd /media/c-drive/Users/Tommy/Desktop/JobEssays/
gnome-open "./My\ Resume.pdf"

I get this error.

Error showing url: Error when getting information for file '/media/c-drive/Users/Tommy/Desktop/JobEssays/My\ Resume.pdf': No such file or directory

My default document viewer is "Document Viewer"

Edit: I get "Unable to init server: Could not connect: Connection refused Cannot parse arguments: Cannot open display: " when removing the quotes or backslash from gnome-open.

1 Answers1

0

You have to either remove the quotes or remove the backslash. You can use either/or but not both when specifying a file.

When you use the quotes you are telling the system, in this case, that the backslash is part of the file name. If you didn't use quote, the backslash would function as an escape character that would prevent the space in the filename from being separated as multiple words.

L. D. James
  • 25,444