~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to data/hooks.py

  • Committer: seb128
  • Date: 2009-06-26 16:07:39 UTC
  • mto: This revision was merged to the branch mainline in revision 465.
  • Revision ID: seb128@seb128-laptop-20090626160739-hs300xxw3o75mz4s
clean libglade use

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    def _readSeenFile(self):
44
44
        """ read the users config file that stores what hook files are
45
 
            already seen
46
 
        """
47
 
        data_home = os.getenv("XDG_CONFIG_HOME", os.path.join(user.home, '.config'))
48
 
        hooks_seen = os.path.join(data_home, 'update-notifier', 'hooks_seen')
 
45
            already seen """
 
46
        hooks_seen = user.home+"/.update-notifier/hooks_seen"
49
47
        if os.path.exists(hooks_seen):
50
48
            for line in open(hooks_seen):
51
49
                filename, mtime, cmd_run = string.split(line)