Knivfisk / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Phrases show up wrong on Firefox and Thunderbird #278

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I've set up text phrases to be triggered by abbreviations

2. When triggering the phrases in FF or TB some letters or white-spaces don't 
show up, totally random. Tried 10 times in a row an the mistakes always show up 
differently. 
Additionally, at times the first letter from the abbreviation gets printed 
before the phrase. 

3. They all work perfectly in other apps (gedit, chromium...)

What is the expected output? What do you see instead?
The phrase shows up randomly wrong. 

What version of the product are you using? On what operating system?
Running Ubuntu (both 13.10 and 14.04) and autokey 0.90.4 (tried older versions 
as well). 

Please provide any additional information below.
attaching a file with 20 random examples for 1 phrase.

Original issue reported on code.google.com by teodor.s...@gmail.com on 24 Apr 2014 at 7:35

Attachments:

GoogleCodeExporter commented 8 years ago
I am experiencing the same issue. All was fine until Firefox 29. I have 
uninstalled all plugins and retested with same effect. This does not happen in 
any other program on the same machine so I believe it is limited to firefox. 
Its no better in Firefox 30. This is killing me. I have had to switch to Chrome 
at work to get my job done. Please email me if there is anything you need from 
me to test or troubleshoot.

Thanks!

Original comment by luke.van...@gmail.com on 1 May 2014 at 9:58

GoogleCodeExporter commented 8 years ago
Actually, it was OK until Firefox 28. 29 is the same.

Original comment by luke.van...@gmail.com on 1 May 2014 at 10:22

GoogleCodeExporter commented 8 years ago
I'm using Firefox 34, on Xubuntu.  When using Autokey in Chrome or Chromium, 
trigger characters are replaced with the correct text.  When using Firefox, 
some of the trigger characters are NOT removed.  It's not always the same, 
sometimes just two of the four trigger characters remain, sometimes it's just 
one.  It rarely works correctly.  

Original comment by wil...@wilbur.us on 5 Jan 2015 at 5:37

GoogleCodeExporter commented 8 years ago
I also experienced this issue for a while. Finally being fed up with it I took 
a look at the source code and figured out a patch that adds a sleep+flush so 
Firefox and Thunderbird keep up with it. Maybe you might need to increase the 
sleep time on your system if it's slower. See attachment for the patch.

Original comment by stayfun2...@gmail.com on 7 Apr 2015 at 10:24

Attachments:

GoogleCodeExporter commented 8 years ago
Where do I sent the beer and pizza? That patch appears to be working so far!

Original comment by carl.hea...@gmail.com on 7 Apr 2015 at 3:27

GoogleCodeExporter commented 8 years ago
I'd like to confirm that this patch seems to fix the issue of phrases losing 
characters in Firefox or Thunderbird. Tested it on Ubuntu 14.04 with Autokey 
0.90.4. 

Thanks for the patch!

ps: Autokey author(s) thanks for your work. Using Autokey daily and very happy 
with it.

Original comment by plukvi...@gmail.com on 10 Jul 2015 at 9:48

GoogleCodeExporter commented 8 years ago
Thanks for the patch, how do i "install" / add this patch? thanks

Original comment by marcosf...@gmail.com on 11 Jul 2015 at 9:42

GoogleCodeExporter commented 8 years ago
Thanks for this patch.  But, how do you install the patch?  I have looker 
everywhere in AutoKey, but can't find any "installation method".  I am not a 
programmer so I'm lost.  If you can help, I'd greatly appreciate it.

Original comment by bwrong.r...@gmail.com on 13 Jul 2015 at 1:36

GoogleCodeExporter commented 8 years ago
I've Found how to install this patch. Here is a list of all the neccesary steps

1. uninstall autokey if you have it installed already
2. download this patch and the source code of autokey from this repository
3. extract the source code.
4. paste the patch inside the extracted folder
5. open a terminal at that location, run  $ patch -p1 < autokey.patch
you should get a confirmation text that everything went well at this step, 
something like "the X file was patched"
6. at this point you need to install autokey from souce, follow the steps from 
this wiki
https://code.google.com/p/autokey/wiki/InstallingAutoKey
7. once everything is installed, reboot.  patch works great!
8. I think that this manual installation gets recognized as an outdated version 
by ubuntu, so it will tell you that there are some upgrades waiting , if you do 
apt-get upgrade  it will override this installation by the default ubuntu 
autokey package. What I did was lock this program so it doesn´t update 
automatically with sudo apt-mark hold autokey-common and autokey-gtk
Hope it helps

Original comment by marcosf...@gmail.com on 13 Jul 2015 at 9:43

GoogleCodeExporter commented 8 years ago
I am not able to install autokey from source on Ubuntu 15.04 because it depends 
on python-central which appears to no longer be available. Applying the patch 
worked but the install failed. Does anyone have any instructions for how to 
install autokey from source on Ubuntu 15.04?

Original comment by l...@reality66.com on 23 Jul 2015 at 3:42

GoogleCodeExporter commented 8 years ago
You have to install python-central, I don't really remember how I did that, try 
apt-get install -f and see if that installs it. or search for the python 
central package online

Original comment by marcosf...@gmail.com on 23 Jul 2015 at 7:28

GoogleCodeExporter commented 8 years ago
I'm sorry if I'm being dumb about this, but all I find is that python-central 
is not available for Ubuntu 15.04. For example 
https://launchpad.net/ubuntu/vivid/+source/python-central

Original comment by l...@reality66.com on 7 Aug 2015 at 3:37

GoogleCodeExporter commented 8 years ago
link to the python central package: 
http://packages.linuxmint.com//pool/upstream/p/python-central/python-central_0.6
.17ubuntu2_all.deb
(it's the mint package but works on ubuntu 15.04)
also you should install these package dependencies:
apt-get install python-xlib python-simplejson python-pyinotify wmctrl

Original comment by marcosf...@gmail.com on 15 Aug 2015 at 9:06

GoogleCodeExporter commented 8 years ago
Thank you very much! That worked great! Are there any plans for the main 
release of autokey to include this patch in the future?

Original comment by l...@reality66.com on 17 Aug 2015 at 2:27

GoogleCodeExporter commented 8 years ago
My patch is just a crude workaround that doesn't always work 100% either. I 
still loose one or two characters regularly.

As the original author cdekter seems to have abandoned the project and Google 
Code will turn read-only on August 25th, don't hold your breath waiting for a 
release over here.

However, on GitHub there are two forks that have adopted the existing code and 
are actively continuing development:
https://github.com/autokey/autokey
https://github.com/guoci/autokey-py3

The first project also has this issue listed also, with some better ideas than 
mine. I would suggest to continue any future discussion over there:
https://github.com/autokey/autokey/issues/28

Original comment by stayfun2...@gmail.com on 17 Aug 2015 at 8:57