Skip to content

Commit

Permalink
Linux: Pass control of the ~/.cache/mozilla directory from the System…
Browse files Browse the repository at this point in the history
… - Cache cleaner to the Firefox - Cache cleaner (LP#1295826)
  • Loading branch information
az0 committed Aug 1, 2014
1 parent 4c7de45 commit 0903d1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bleachbit/Cleaner.py
Expand Up @@ -239,6 +239,10 @@ def get_commands(self, option_id):
if 'nt' == os.name:
dirs += FileUtilities.expand_glob_join(
cache_base, "jumpListCache") # Windows 8
if 'posix' == os.name:
# This path is whitelisted under the System - Cache cleaner,
# so it can be cleaned here.
dirs += [ os.path.expanduser('~/.cache/mozilla') ]
for dirname in dirs:
for filename in children_in_directory(dirname, False):
yield Command.Delete(filename)
Expand Down Expand Up @@ -756,6 +760,8 @@ def whitelisted(self, pathname):
'^/tmp/pulse-[^/]+/pid$',
'^/var/tmp/kdecache-']
regexes.append('^' + os.path.expanduser('~/.cache/wallpaper/'))
# Clean Firefox cache from Firefox cleaner (LP#1295826)
regexes.append('^' + os.path.expanduser('~/.cache/mozilla'))
regexes.append(
'^' + os.path.expanduser('~/.cache/gnome-control-center/'))
for regex in regexes:
Expand Down

0 comments on commit 0903d1f

Please sign in to comment.