Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just got an idea to create a lense that would work as a Character Map. I need character copying very often, and on Windows there was a very useful programme (PopChar), but on Ubuntu I haven't found anything like it. So I thought I could try to build a lense that could copy a single character (or perhaps a sequence of characters, if possible?) by just searching for it in the Dash and clicking on it once found. Since I've never done anything similar, I'm not sure how possible it is to copy certain content by clicking on its visual link in the Dash.

So, my question is, if I create a Lense + Scope for copying Unicode characters, would it be possible through Dash to just copy a character that I click on once I find it?

share|improve this question
up vote 0 down vote accepted

The scope's activate_uri method could be used to copy text to the system clipboard with the following:

clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
clipboard.set_text('text', -1)
share|improve this answer
Teester thank you so much for the answer. I'm not able at the moment to test this out, but I certainly will as soon as time permits me to. For now I'll accept your answer and I'll return with the feedback as soon as I test it out. – Томица Кораћ Feb 20 '13 at 20:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.