diff options
Diffstat (limited to '')
-rw-r--r-- | modules/common/qutebrowser.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/common/qutebrowser.nix b/modules/common/qutebrowser.nix index 8eadf5a..96da894 100644 --- a/modules/common/qutebrowser.nix +++ b/modules/common/qutebrowser.nix @@ -532,8 +532,9 @@ in { home.activation.installQutebrowserDictionaries = let dictcli = "${pkgs.qutebrowser}/share/qutebrowser/scripts/dictcli.py"; in '' - # TODO Check if already installed. - ${dictcli} install en-US en-GB ru-RU + if [[ ! -d "''${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser/qtwebengine_dictionaries" ]]; then + ${dictcli} install en-US en-GB ru-RU + fi ''; }; }; |