#!/usr/bin/python
# requires python-notify
import pynotify
import sys
import string
import os
# Do not run on Gnome, as gnome detect the ltspfs mounts on its own.
xdgdirs = os.environ.get('XDG_DATA_DIRS')
if xdgdirs and -1 != xdgdirs.find("/usr/share/gnome"):
  sys.exit(0)
if not pynotify.init("edu-notify"):
  sys.exit(1)
n = pynotify.Notification("ltspfs","%s" % sys.argv[1]+' '+sys.argv[2])
n.set_timeout(5000) # show notification for 5 seconds
n.show()
