[kupfer: 34/51] Fix startup notification in kupfer-exec



commit 24b3886e3359cbda793cfbfe1e3f8ea7226e2cf6
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Mon Mar 28 16:51:47 2011 +0200

    Fix startup notification in kupfer-exec

 bin/kupfer-exec.in |    7 +++++++
 wscript            |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/bin/kupfer-exec.in b/bin/kupfer-exec.in
index 29f59c7..22f45aa 100755
--- a/bin/kupfer-exec.in
+++ b/bin/kupfer-exec.in
@@ -6,6 +6,8 @@
 export TEXTDOMAIN='@PACKAGE@'
 export TEXTDOMAINDIR='@LOCALEDIR@'
 
+PYTHON='@PYTHON@'
+
 if test ! -f "$1"
 then
 	echo "A file argument required"
@@ -34,3 +36,8 @@ do
 	fi
 	shift
 done
+
+if test -n "$DESKTOP_STARTUP_ID" -a -n "${PYTHON## *}"
+then
+	${PYTHON} -c "import gtk.gdk; gtk.gdk.notify_startup_complete()"
+fi
diff --git a/wscript b/wscript
index 218b778..d99674a 100644
--- a/wscript
+++ b/wscript
@@ -253,7 +253,7 @@ def build(bld):
 	bld(features="subst",
 		source = "bin/kupfer-exec.in",
 		target = "bin/kupfer-exec",
-		dict = _dict_slice(bld.env, "PACKAGE LOCALEDIR".split())
+		dict = _dict_slice(bld.env, "PYTHON PACKAGE LOCALEDIR".split())
 		)
 	bld.install_files("${BINDIR}", "bin/kupfer-exec", chmod=0o755)
 



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