Certain Key-Phrases Lockup AutoKey-GTk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autokey (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I've seen certain phrases lock up autokey-gtk, and ultimately lock up your ability to type into any other application until the autokey python process is killed. Autokey should save my phrases exactly the way I type them, but behind the scenes it needs to do a better job of escaping special characters or keywords, so that later, when it autokeys my phrases, special words or characters don't lock autokey up.
Specifically, try making a phrase for "<script>" without quotes. Doing so will cause a lock-up when you try to autokey that phrase later.
To reproduce this bug, simply do the following steps:
1) If you don't have autokey install, do this:
sudo apt-get install autokey-gtk
2) Create a new phrase, by clicking the "New" button on the top-bar-panel then click "phrase" from the sub-menu.
3) Name the phrase anything you want ("test" without quotes will be fine).
4) For the phrase, type "<script>" (without quotes) into the text-box-control.
5) After this, click the "Set" button to create a hotkey combination, so that anytime you press that combination of keys autokey will type <script>. For example, I chose ctrl-alt-q as the hot combination.
6) Click the "Save" button on the top-bar-panel of autkey.
7) Open up a text editor (like gedit), and now hit the hot-key-combination you created in step 5.
Expected result: Autokey should type "<script>" (without quotes) into gedit.
Actual result: Autokey not only locks up itself, but it also locks up your ability to type anywhere else until you actually kill the autokey python process that is running autokey.
I have a lot of html templates that I use autokey to insert into code-editors and such. Many of these templates have <script></script> tags in them. Each time I try to autokey phrases containing "<script>", Autokey locks up with the behavior I've described.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: autokey-gtk 0.90.4-1
ProcVersionSign
Uname: Linux 4.4.0-8-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Feb 28 18:59:23 2016
InstallationDate: Installed on 2016-02-10 (18 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160210)
PackageArchitec
SourcePackage: autokey
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Autokey grabs the X11 keyboard during some operations to prevent interventions. Errors during this time caused it to stay grabbed.
Just published version 0.95.1 should fix this issue.