~ubuntu-branches/ubuntu/quantal/bleachbit/quantal

« back to all changes in this revision

Viewing changes to bleachbit/Cleaner.py

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2010-06-06 11:43:36 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20100606114336-lju18bq7cpnx3wds
Tags: 0.8.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
355
355
        self.add_option('cache', _('Cache'), _('Delete the cache'))
356
356
 
357
357
    def get_description(self):
358
 
        return _("Delete the files in the rpmbuild build directory")
 
358
        return _("Delete the files in the rpmbuild build folder")
359
359
 
360
360
    def get_id(self):
361
361
        return 'rpmbuild'
420
420
        if HAVE_GTK:
421
421
            self.add_option('clipboard', _('Clipboard'), _('The desktop environment\'s clipboard used for copy and paste operations'))
422
422
        self.add_option('free_disk_space', _('Free disk space'), _('Overwrite free disk space to hide deleted files'))
423
 
        self.set_warning('free_disk_space', _('This option is slow.'))
 
423
        self.set_warning('free_disk_space', _('This option is very slow.'))
424
424
        self.add_option('tmp', _('Temporary files'), _('Delete the temporary files'))
425
425
 
426
426
    def get_description(self):
583
583
            # GNOME 2.26 (as seen on Ubuntu 9.04) will retain the list
584
584
            # in memory if it is simply deleted, so it must be shredded
585
585
            # (or at least truncated).
 
586
            #
 
587
            # GNOME 2.28.1 (Ubuntu 9.10) and 2.30 (10.04) do not re-read
 
588
            # the file after truncation, but do re-read it after
 
589
            # shreading.
 
590
            #
 
591
            # https://bugzilla.gnome.org/show_bug.cgi?id=591404
586
592
            pathname = os.path.expanduser("~/.recently-used.xbel")
587
593
            if os.path.lexists(pathname):
588
 
                if options.get('shred'):
589
 
                    yield Command.Shred(pathname)
590
 
                else:
591
 
                    yield Command.Truncate(pathname)
 
594
                yield Command.Shred(pathname)
 
595
                gtk.RecentManager().purge_items()
592
596
 
593
597
 
594
598
        # overwrite free space