[kupfer] Only call desktop services on start if DESKTOP_STARTUP_ID is set
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] Only call desktop services on start if DESKTOP_STARTUP_ID is set
- Date: Mon, 18 Jan 2010 04:53:00 +0000 (UTC)
commit d13e331f8ba6ffe8fe521dbe2d4f3a013f71d938
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Jan 18 03:40:19 2010 +0100
Only call desktop services on start if DESKTOP_STARTUP_ID is set
We save some time from shell activation, when we don't need to tell
the desktop that kupfer finished launching. This is only needed when
launched from the desktop user interface (from panel/kupfer/menus).
kupfer-activate.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/kupfer-activate.sh b/kupfer-activate.sh
index b9016e9..7cfe798 100755
--- a/kupfer-activate.sh
+++ b/kupfer-activate.sh
@@ -52,4 +52,7 @@ then
exec ${PYTHON} "$PYTHONDIR/kupfer.py" $*
fi
-${PYTHON} -c "import gtk.gdk; gtk.gdk.notify_startup_complete()"
+if test -n "$DESKTOP_STARTUP_ID"
+then
+ ${PYTHON} -c "import gtk.gdk; gtk.gdk.notify_startup_complete()"
+fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]