[kupfer] utils: Pass activate=False in launch_commandline



commit 8b5e9331aaca333ba85b27aa1b20739cffb10657
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri Dec 11 02:04:16 2009 +0100

    utils: Pass activate=False in launch_commandline
    
    We never want to focus an already running application with
    launch_commandline. This fixes a bug (but only when there is a corrupt
    Application matching history).

 kupfer/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/utils.py b/kupfer/utils.py
index 67e5c02..7af7bdf 100644
--- a/kupfer/utils.py
+++ b/kupfer/utils.py
@@ -87,7 +87,7 @@ def launch_commandline(cli, name=None, in_terminal=False):
 	import launch
 	app_info = app_info_for_commandline(cli, name, in_terminal)
 	pretty.print_debug(__name__, "Launch commandline (in_terminal=", in_terminal, "):", cli, sep="")
-	return launch.launch_application(app_info, track=False)
+	return launch.launch_application(app_info, activate=False, track=False)
 
 def launch_app(app_info, files=(), uris=(), paths=()):
 	import launch



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]