[kupfer: 7/67] utils: Implement spawn_async_notify_as
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 7/67] utils: Implement spawn_async_notify_as
- Date: Sat, 19 Mar 2011 00:58:19 +0000 (UTC)
commit 8d01f3da510165d0992ce890d954ebc17be5d01b
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Mar 15 22:52:26 2011 +0100
utils: Implement spawn_async_notify_as
kupfer/utils.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/utils.py b/kupfer/utils.py
index 1161f57..e80f7fb 100644
--- a/kupfer/utils.py
+++ b/kupfer/utils.py
@@ -199,6 +199,13 @@ def spawn_in_terminal(argv, workdir=None):
_argv = _get_term_argv(argv)
desktop_launch.spawn_app_id(TERM_ID, _argv , workdir, TERM_STARTUPNOTIFY)
+def spawn_async_notify_as(app_id, argv):
+ """
+ Spawn argument list @argv and startup-notify as
+ if application @app_id is starting (if possible)
+ """
+ desktop_launch.spawn_app_id(app_id, argv , None, True)
+
def spawn_async(argv, in_dir="."):
"Silently spawn @argv in the background"
pretty.print_debug(__name__, "Spawn commandline", argv, in_dir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]