careteditor / issues

Caret issues
https://caret.io
324 stars 12 forks source link

"Open with..." shows blank page if there's a space in the folder path #514

Open betahat opened 7 years ago

betahat commented 7 years ago

When I use nautilus (gnome) to open a md file with caret, the document shows up blank. If I open the file directly from caret, the same document shows up fine. I haven't noticed this in any other software, so I suspect it must have something to do with how nautilus and caret are interacting.

astoilkov commented 7 years ago

We will investigate. Thanks for reporting.

manuelbua commented 7 years ago

What distro are you using @mthomas7? I had this very problem on ArchLinux, but it turned out the packager forgot to forward the parameters from the shell script to the actual Caret binary.

It just looked /opt/caret/Caret but it should have been /opt/caret/Caret $@.

betahat commented 7 years ago

@manuelbua - yep, it's Arch, but the script at /usr/bin has actually been updated to /opt/caret/Caret $@ now, so something else is making it fail to open the file correctly. (But thank you for the suggestion!)

manuelbua commented 7 years ago

That's odd, i was hoping you weren't on Arch because i know it's fine there since i'm taking care of the package on the AUR now: i'm wondering what else it could be?

betahat commented 7 years ago

Hmm. Strange. (It's actually Antergos, though I suspect that doesn't matter since it's still installed from aur.)

betahat commented 7 years ago

So a quick update - this seems to be a problem with some md files but not others. I'm not yet sure whether there's a pattern regarding which are working and which aren't.

betahat commented 7 years ago

Figured out the problem! If there is a space anywhere in the folder path (any folder has a space in the name), the file will not display properly. If there are no spaces in the folder path, the same file shows perfectly.