Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (6 sloc) 345 Bytes
#!/bin/sh
PYTHON="@PYTHON@"
test ${PYTHON:0:1} = "@" && PYTHON=python
# Try to spawn kupfer via dbus, else go to python
dbus-send --print-reply --dest=se.kaizer.kupfer /interface se.kaizer.kupfer.Listener.ShowHide >/dev/null 2>&1
test $? != 0 && exec ${PYTHON} -m kupfer $* || ${PYTHON} -c "import gtk.gdk; gtk.gdk.notify_startup_complete()"