ColorPicker icon indicating copy to clipboard operation
ColorPicker copied to clipboard

Not working in Ubuntu 16.04 LTS

Open vajahath opened this issue 9 years ago • 9 comments

Hi I just had a fresh installation 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, select a color, but the selected color does not appear on the window. ie. After selecting a particular color and clicking ok does do nothing 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.

vajahath avatar Jun 29 '16 08:06 vajahath

just 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 to if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType): and save. hope it's help

ianfebriyanto avatar Jun 29 '16 21:06 ianfebriyanto

@ianfebriyanto Thank you! very much, it's working now. I was having the same problem as @vajahath since last months.

dipengrg avatar Jul 03 '16 08:07 dipengrg

@ianfebriyanto Thank you very much.. @dipengrg :+1:

vajahath avatar Jul 04 '16 09:07 vajahath

id also like to add that if you run the file: ~/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py and you are still getting gtk import errors, you need to install the gtk package with: sudo apt-get install python-gtk2

Sschumac avatar Jul 15 '16 19:07 Sschumac

@dipengrg @ianfebriyanto @ianfebriyanto. It seems like after some updates the

if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType):

configuration wont work. We've to change it back to:

if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType.OK):

vajahath avatar Aug 03 '16 04:08 vajahath

@Sschumac thanks bro!!!' :D

ericvipo avatar Mar 12 '17 06:03 ericvipo

It seems like the latest commit to this project is before 2 years. Is this still an active project?

vajahath avatar Mar 31 '17 13:03 vajahath

@ianfebriyanto Thank you!

3RM avatar Jul 05 '17 09:07 3RM

It works for Sublime Text 3 in Ubuntu 18.04 as well, but I have to install the dependency python-gtk2.

CarlosMartins01 avatar Apr 10 '20 19:04 CarlosMartins01