19 lines
807 B
Plaintext
19 lines
807 B
Plaintext
$OpenBSD: patch-GTG_gtg_py,v 1.4 2010/09/06 10:42:30 jasper Exp $
|
|
--- GTG/gtg.py.orig Sat Apr 10 13:38:37 2010
|
|
+++ GTG/gtg.py Mon Sep 6 12:41:05 2010
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!${MODPY_BIN}
|
|
# -*- coding: utf-8 -*-
|
|
# -----------------------------------------------------------------------------
|
|
# Gettings Things Gnome! - a personal organizer for the GNOME desktop
|
|
@@ -77,7 +77,7 @@ def check_instance(directory):
|
|
pid = open(pidfile, "r").readline()
|
|
if pid:
|
|
p = os.system("/bin/ps %s >/dev/null" % pid)
|
|
- p_name = os.popen("/bin/ps -f %s" % pid).read()
|
|
+ p_name = os.popen("/bin/ps -p %s" % pid).read()
|
|
if p == 0 and "gtg" in p_name:
|
|
print _("gtg is already running!")
|
|
d=dbus.SessionBus().get_object(CoreConfig.BUSNAME,\
|