mrichar1 / clipster

clipster - python clipboard manager
GNU Affero General Public License v3.0
242 stars 26 forks source link

Clipster doesn't capture when using `Gtk.Clipboard`'s `set_text` to copy (in Python) #83

Closed friday closed 5 years ago

friday commented 5 years ago

Example:

python2 -c "
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
clipboard.set_text('[CLIPSTER_TEST]', -1)
clipboard.store()"

If I paste with ctrl + v it works, but clipster -o doesn't catch it. I think the owner-change event isn't triggered?

friday commented 5 years ago

My bad! Messed up my config, so it was using the primary clipboard.

clipster -o -c might be safer in this case.