In order to print, I installed the Print to HTML plugin for Sublime Text 3 on Linux Mint 18 Sarah. However, when I tried to print a file, nothing happened. A look at the console revealed this error trace:
Traceback (most recent call last): File "/opt/sublime_text/sublime_plugin.py", line 812, in run_ return self.run(edit, **args) File "/home/dummyuser/.config/sublime-text-3/Packages/Print to HTML/PrintToHTML.py", line 131, in run send_to_browser(html) File "/home/dummyuser/.config/sublime-text-3/Packages/Print to HTML/PrintToHTML.py", line 164, in send_to_browser desktop.open(tmp_html.name) File "/home/dummyuser/.config/sublime-text-3/Packages/Print to HTML/desktop/__init__.py", line 289, in open return _run(cmd, 0, wait) File "/home/dummyuser/.config/sublime-text-3/Packages/Print to HTML/desktop/__init__.py", line 87, in _run opener = subprocess.Popen(cmd, shell=shell) File "./python3.3/subprocess.py", line 819, in __init__ File "./python3.3/subprocess.py", line 1448, in _execute_child FileNotFoundError: [Errno 2] No such file or directory: 'gnome-open'
The plugin was trying to use gnome-open to open the HTML file it generated. However, Linux Mint uses xdg-open for this purpose. I could get the plugin to work by replacing this code in ~/.config/sublime-text-3/Packages/Print to HTML/desktop/__init__.py: