Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching gedit causes autokey to no longer accept responses #5

Closed
GoogleCodeExporter opened this issue May 9, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Script to launch gedit: system.exec_command("gedit")
2. Autokey will no longer substitute phrases
3. Problem disappears when instance of gedit thusly launched closes.  Then
remaining autokey scripts are parsed.  Problem occurs for open-office
document writer as well.

What is the expected output? What do you see instead?
Autokey substitution is expected in gedit.  Instead all substitutions wait
until gedit is closes

What version of the product are you using? On what operating system?
ubuntu 9.04, autokey Version 0.60.7a

Please provide any additional information below.


Original issue reported on code.google.com by dr.dave....@gmail.com on 2 Nov 2009 at 7:38

@GoogleCodeExporter
Copy link
Author

Same here:

text = clipboard.get_selection()
kommando = "firefox 'http://www.google.de/search?q=%s'" % text
x = system.exec_command(kommando)

This freezes AutoKey. After closing Firefox, AutoKey will work again.
(Ubuntu 9.10, AutoKey 0.61.0)



Original comment by Matthias...@gmail.com on 28 Nov 2009 at 5:05

@GoogleCodeExporter
Copy link
Author

The reason is because system.exec_command waits for the process to exit before 
it
returns, hence blocking the thread in autokey that handles all the expansions. 

Try adding an ampersand to the end of your command (&).

Original comment by cdekter on 24 Mar 2010 at 11:22

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

OK no that won't help...

Added additional optional argument for system.exec_command in v0.61.6 - set 
getOutput
to False if you don't care about the output of the command. This way autokey 
won't
block if the command does not return to the shell immediately (e.g. like gedit 
does)

Original comment by cdekter on 25 Mar 2010 at 1:18

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant