ColorPicker icon indicating copy to clipboard operation
ColorPicker copied to clipboard

Not working on Kubuntu 20.04

Open Chowih opened this issue 5 years ago • 3 comments

The plugin don't work in SublimeText (3211) with the Ctrl + Shift + C shortcut. I have 2 PCs with this OS and SublimeText Version. Both have the same issue.

Chowih avatar May 16 '20 18:05 Chowih

Same happens here, ver. 3211 and running ubuntu 20.4

gatti2602 avatar May 19 '20 01:05 gatti2602

I believe its because the gtk libraries arent installed. If you try to run linux_colorpicker.py on its own you should see the error.

This is the error that I got: https://www.google.com/search?q=import+gtk+as+Gtk+ImportError%3A+No+module+named+gtk

Darkle avatar May 20 '20 00:05 Darkle

Since version 22.04 there's not an easy way to install python2-gtk (was the fix used in ubuntu 20.04).

The fix I found is edit the first line of the file ~/.config/sublime-text/Packages/ColorPicker/lib/linux_colorpicker.py

and change the first line, from #!/usr/bin/env python to #!/usr/bin/env python3

That fixes my problem in ubuntu 22.04.

lapega avatar Jun 24 '22 13:06 lapega