the-linux-schools-project / karoshi-client

Central repository for Karoshi Client development
http://linuxschools.org.uk
5 stars 6 forks source link

Remove dictionary languages from Firefox that don't match machine language #98

Closed Eldara98 closed 9 years ago

Eldara98 commented 9 years ago

Following a fair bit of testing, the dictionaries that Firefox uses for spell-checking are those of Hunspell/Myspell, symlinked to /usr/lib/firefox/dictionaries. Unfortunately, the only way I could find to force Firefox to use the correct spell-checker was to either remove the Hunspell/Myspell dictionaries, or delete the symlinks that Firefox was using and then bring back the relevant dictionaries. Unfortunately, this does now mean that there is only one spell-check language for Firefox (that defined as the machine language), but the dictionaries are still available for other applications that use them, such as LibreOffice.

Fixes #95

cc: @Xenopathic

RobinMcCorkell commented 9 years ago

Before removing /usr/lib/firefox/dictionaries, could you add a diversion for it with DPKG so that it doesn't try to overwrite it at any point? That way, any package upgrades of Firefox won't fail due to overwritten files, and there is no chance of overwriting your work.

dpkg-divert --local --add /usr/lib/firefox/dictionaries
Eldara98 commented 9 years ago

Many thanks for that @Xenopathic!

RobinMcCorkell commented 9 years ago

LGTM :+1:

Could you open a technical debt issue linking to this PR? We really shouldn't have to resort to workarounds like this, and a tech debt issue lets us keep track of the issue in case upstream fixes it. Thanks.