As I tested Ubuntu Tweak 0.8.6 in Ubuntu 13.10. It seems that for both, late releases of Mozilla Firefox and Thunderbird moved their cache folders to ~/.cache
. Profiles configuration kept in same place ~/.mozilla/firefox/profiles.ini
and ~/.thunderbird/profiles.ini
.
Quick patch:
sudo nano /usr/share/pyshared/ubuntutweak/janitor/mozilla_plugin.py
Add/Change all lines I include cache_path
in them (3 new lines, 2 modified app_path
→ cache_path
, keep app_path
of the profiles.ini):
import os
import logging
from ubuntutweak.janitor import JanitorCachePlugin
from ubuntutweak.settings.configsettings import RawConfigSetting
log = logging.getLogger('MozillaCachePlugin')
class MozillaCachePlugin(JanitorCachePlugin):
__category__ = 'application'
targets = ['Cache',
'OfflineCache']
app_path = ''
cache_path = ''
@classmethod
def get_path(cls):
profiles_path = os.path.expanduser('%s/profiles.ini' % cls.app_path)
if os.path.exists(profiles_path):
config = RawConfigSetting(profiles_path)
try:
profile_id = config.get_value('General', 'StartWithLastProfile')
for section in config.sections():
if section.startswith('Profile'):
relative_id = config.get_value(section, 'IsRelative')
if relative_id == profile_id:
return os.path.expanduser('%s/%s' % (cls.cache_path, config.get_value(section, 'Path')))
except Exception, e:
log.error(e)
path = config.get_value('Profile0', 'Path')
if path:
return os.path.expanduser('%s/%s' % (cls.cache_path, path))
return cls.root_path
class FirefoxCachePlugin(MozillaCachePlugin):
__title__ = _('Firefox Cache')
app_path = '~/.mozilla/firefox'
cache_path = '~/.cache/mozilla/firefox'
class ThunderbirdCachePlugin(MozillaCachePlugin):
__title__ = _('Thunderbird Cache')
cache_path = '~/.cache/thunderbird'
app_path = '~/.thunderbird'
I filled an upstream bug report for this, See Cache path of Mozilla Firefox and Thunderbird changed to ~/.cache #24
![enter image description here](https://i.stack.imgur.com/R6Dzi.png)
Best Answer
I would listen to Jorge Castro :) But since I dont and like to tinker around... Ive only ever had one problem with Ubuntu Tweak and that was early on when the program first came out. It deleted something in the OS that wasnt supposed to be deleted and I was having all sorts of errors.
A year or two later now, its one of the first programs I install on my own system. I also do all the cleanup stuff and have not had a problem (minus that one time). For tinkering Ubuntu users, Id install it... for regular users or if you installed Ubuntu for a friend, they will never really need it.