sublime-text color picker tool does not work in Ubuntu 16.04 LTS
I just installed Ubuntu 16.04 LTS version, then installed sublime-text 3 (build 3103) and ColorPicker tool.
I can access the ColorPicker tool using Ctrl+Shift+C and select a color, but the selected color does not appear on the window. ie. after I select a particular color and click ok nothing happens except closing the window. The color hashcode does not appear nor replace existing color value. It was working fine in my previous 14.04 version.
Where should I look for the problems???
Edit ~/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py
Search this line:
if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType.OK):
Change it to:
if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType):
and save.
Source: https://github.com/weslly/ColorPicker/issues/82
Verify the shebang script-file-path is pointing to the correct python. In my case I was using python3 but the script was pointing to python2
So I edited the file,
~/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py
in which the first line was
#!/usr/bin/env python
to call python3 like this:
#!/usr/bin/env python3
it helped me.
I hope it will help someone who may happen to face the same issue in future :)