Skip to content

Commit

Permalink
Change khweeteur script to directly start Khweeteur.
Browse files Browse the repository at this point in the history
 - Don't exec.
  • Loading branch information
nwalfield committed Nov 4, 2011
1 parent 416fa78 commit 4aab688
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions scripts/khweeteur
Original file line number Diff line number Diff line change
@@ -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.