timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 74 forks source link

Doesn't open default browser on Ubuntu 14.04 #52

Closed alexeyza closed 10 years ago

alexeyza commented 10 years ago

When trying to open preview in the browser it returns the following error:

/.config/sublime-text-3/Packages/OmniMarkupPreviewer/OmniMarkupLib/desktop/__init__.py", line 98, in _run
    opener = subprocess.Popen(cmd, shell=shell)
    File "X/subprocess.py", line 818, in __init__
    File "X/subprocess.py", line 1416, in _execute_child
  FileNotFoundError: [Errno 2] No such file or directory: 'gnome-open'

It seems that in (a clean and fresh install of) Ubuntu 14.04 gnome-open is not installed by default, and maybe gvfs-open should be used instead. In Ubuntu 13.10 it worked fine though, with gnome-open.

timonwong commented 10 years ago

Thanks.

I've pushed changes which hopefully fix that problem, can you try it?

alexeyza commented 10 years ago

Fixed the errors for me, and works fine (Ubuntu 14.04 + Sublime Text 3), no errors. I've tested manually as the version from the Package Control is not updated yet to this patch.

timonwong commented 10 years ago

Thanks, I'll ship the fix to Package Control soon.