Situation

  • GNOME Shell
  • AutoKey / autokey-gtk
  • it has a predefined shortcut "adr" which should write an address after hitting space
  • and a shortcut "date" which should write the current date (after hitting tab)

Screenshot of settings in AutoKey

Problem

  • no matter what I define, "adr" or "date" it always inserts as much blank lines as the template uses

Example:

  • "date" should autocomplete after pressing space to "13/08/01" but it inserts one empty line
  • "adr" should do my full address but it inserts 4 empty lines

Question

What could be wrong with my AutoKey? Do you need additional information?

  • 1
    were you able to solve it in the end? I am also in a similar situation. – Richard Jan 17 '14 at 17:28
  • No sorry. Since then I just deleted the snippets, created new, restarted and so on. At some point the error disappears but I can not tell why. – LeMike Jan 18 '14 at 12:10

Solution for me (running Xubuntu 14.04) was to provide a .service file in:

/usr/share/dbus-1/services.

  • First I deleted all the example files and scripts, and created a new file. (This was on a fresh install of AutoKey.)
  • Then I created an empty file org.autokey.Service under /usr/share/dbus-1/services
  • In the org.autokey.Service file I put the following text: [D-BUS Service] Name=org.autokey.Service Exec=/usr/bin/autokey

  • Then I killed AutoKey via the taskmanager (AK already hang), and restarted AutoKey

  • Tested it, and it works. No more blank lines. Text gets replaced like it should.

(I did not test the script functionality of AutoKey)

  • I'll try that next time. Thanks! – LeMike Jun 6 '14 at 11:29
  • This is a very helpful tip. But I have one more problem. My AutoKey ignores diacritics. – Joanna Siwiec Nov 2 '16 at 12:06

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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