-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change khweeteur script to directly start Khweeteur.
- Don't exec.
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |