Permalink
Browse files

Change khweeteur script to directly start Khweeteur.

 - Don't exec.
  • Loading branch information...
1 parent 416fa78 commit 4aab6885dc5ca64a2384bfdc295473501085d32c @nwalfield nwalfield committed Nov 2, 2011
Showing with 12 additions and 5 deletions.
  1. +12 −5 scripts/khweeteur
View
@@ -1,5 +1,12 @@
-#!/bin/sh
-case $1 in
- -d | -D ) /usr/bin/python /usr/lib/python2.5/site-packages/khweeteur/daemon.py startfromprefs;;
- * ) exec python /usr/lib/python2.5/site-packages/khweeteur/__init__.py;;
-esac
+#! /usr/bin/env python
+
+# Load Khweeteur. It is important that we don't exec as our WM_CLASS
+# is set according to the binary. This needs to be correct so that,
+# e.g., org.freedesktop.Notifications.Notify overlays the notification
+# window.
+
+import sys
+sys.path = ['/usr/lib/python2.5/site-packages/khweeteur'] + sys.path
+from qwidget_gui import main
+
+main()

0 comments on commit 4aab688

Please sign in to comment.