As gm-notify kill itself on startup the "killall gm-notify" is not needed.
Simply add
gm-notify &
inside the "if" and it takes care of the rest.
REF:
/usr/bn/gm-notify: line 60
class CheckMail():
def __init__(self): '''initiates DBUS-Messaging interface, creates the MailChecker and registers with indicator-applet.
In the end it starts the periodic check timer and a gtk main-loop'''
As gm-notify kill itself on startup the "killall gm-notify" is not needed.
Simply add
gm-notify &
inside the "if" and it takes care of the rest.
REF:
'''initiates DBUS-Messaging interface, creates the MailChecker and registers with indicator-applet.
/usr/bn/gm-notify: line 60
class CheckMail():
def __init__(self):
In the end it starts the periodic check timer and a gtk main-loop'''
# Kill running gm-notify processes (UGLY!)
subprocess. call("kill `pgrep -f gm-notify | grep -v %s`" % os.getpid(), stdout= open("/ dev/null" , "w"), shell=True)
...